Documentation
¶
Index ¶
- Constants
- func DecryptText(encryptedHex string) (string, error)
- func DecryptTextWithKey(encryptedHex, secret string) (string, error)
- func EncryptPasswordHash(password, encryptedSalt string) (string, error)
- func EncryptText(plainText string) (string, error)
- func EncryptTextWithKey(plainText, secret string) (string, error)
- func PassToHash(password, saltHex string) (string, error)
Constants ¶
View Source
const (
AppCryptoSecret = "6KYQBP847D4ATSFA"
)
Variables ¶
This section is empty.
Functions ¶
func DecryptText ¶
DecryptText decrypts using the default AppCryptoSecret
func DecryptTextWithKey ¶
DecryptTextWithKey decrypts an AES-256-CBC encrypted text using a secret.
func EncryptPasswordHash ¶
EncryptPasswordHash encrypts a password for the login flow
func EncryptText ¶
EncryptText encrypts using the default AppCryptoSecret
func EncryptTextWithKey ¶
EncryptTextWithKey encrypts a plain text using AES-256-CBC with a secret.
func PassToHash ¶
PassToHash generates a password hash using PBKDF2 with SHA1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.