Documentation
¶
Index ¶
- func DecryptPassword(crypted, token, prependedMasterKey, appendedMasterKey string) (string, error)
- func DecryptPasswordWithBase64(crypted, token, prependedMasterKey, appendedMasterKey string) (string, error)
- func EncryptPassword(uncrypted, token, prependedMasterKey, appendedMasterKey string) (string, error)
- func EncryptPasswordWithBase64(uncrypted, token, prependedMasterKey, appendedMasterKey string) (string, error)
- func HashPassword(uncrypted, masterKey string) string
- func VerifyHash(uncrypted, hash, masterKey string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptPassword ¶
DecryptPassword ************************************************************* * Decrypt a password according to the passPhrase and the token *****************************************************************************
func DecryptPasswordWithBase64 ¶
func DecryptPasswordWithBase64(crypted, token, prependedMasterKey, appendedMasterKey string) (string, error)
DecryptBusinessesDbPassword ************************************************* * Decrypt a password according to the passPhrase and the token *****************************************************************************
func EncryptPassword ¶
func EncryptPassword(uncrypted, token, prependedMasterKey, appendedMasterKey string) (string, error)
EncryptPassword ************************************************************* * Encrypt a password according to the passPhrase and the token *****************************************************************************
func EncryptPasswordWithBase64 ¶
func EncryptPasswordWithBase64(uncrypted, token, prependedMasterKey, appendedMasterKey string) (string, error)
EncryptBusinessesDbPassword ************************************************* * Encrypt a password according to the passPhrase and the token *****************************************************************************
func HashPassword ¶
***************************************************************************** ** HashPassword ** Hash a password according to the masterKey *****************************************************************************
func VerifyHash ¶
***************************************************************************** ** VerifyHash ** Verify a hash according to the masterKey *****************************************************************************
Types ¶
This section is empty.