Documentation ¶
Index ¶
- func AuthorizeUser(pwFilePath string, values [][]byte) error
- func CheckEncryptedData(encInfoPath string) bool
- func CheckMasterPassword(pwFilePath string) bool
- func CheckPasswordStrength(usrInput string) bool
- func FirstRun(encInfoPath, pwFilePath string) error
- func GetMasterPassword() string
- func HashMasterPassword(usrInput, pwFilePath string) ([]byte, []byte, error)
- func LoadEncryptedInfo(encInfoPath string) ([][]byte, error)
- func NewEncryptionKey() ([]byte, error)
- func Run(encInfoPath, pwFilePath string) ([]byte, error)
- func SaveEncryptionData(encInfoPath string, values [][]byte) error
- func SaveMasterPassword(pwFilePath string, hashedMasterPassword []byte) error
- func SealEncryptionKey(hashedPassword []byte, encryptionKey []byte) ([]byte, error)
- func UnsealEncryptionKey(pwFilePath string, values [][]byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorizeUser ¶
Take users' master password input and compare it to the stored hash, allowing access if match
func CheckEncryptedData ¶
func CheckMasterPassword ¶
Check whether master password file exists already
func CheckPasswordStrength ¶
CheckPasswordStrength checks the strength of the user-entered input for master password
func GetMasterPassword ¶
func GetMasterPassword() string
Ask the user to enter their master password
func HashMasterPassword ¶
Argon2 is considered better than bcrypt for securing passwords
func LoadEncryptedInfo ¶
func NewEncryptionKey ¶
func SaveEncryptionData ¶
Save the salt and sealed encryption key to disk
func SaveMasterPassword ¶
func SealEncryptionKey ¶
Seal encryption key for an added layer of protection
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.