Documentation
¶
Index ¶
- func Aes256DecryptByPassFromBase64String(encryptedBase64Data, password string) (decryptedBytes []byte, err error)
- func Aes256Encrypt(payload, aes32Key []byte) (encryptedData []byte, err error)
- func Aes256EncryptByPassToBase64String(payload []byte, password string) (encryptedBase64Data string, err error)
- func AesDecrypt(encryptedData, key []byte) (decryptedData []byte, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Aes256DecryptByPassFromBase64String ¶
func Aes256DecryptByPassFromBase64String(encryptedBase64Data, password string) (decryptedBytes []byte, err error)
Aes256DecryptByPassFromBase64String a user friendly wrapper of AesDecrypt and the reverse operation of AesEncryptStringToBase64String: it accepts base64 encrypted string and a password and returns a decrypted data
func Aes256Encrypt ¶
func Aes256EncryptByPassToBase64String ¶
func Aes256EncryptByPassToBase64String(payload []byte, password string) (encryptedBase64Data string, err error)
AesEncryptStringToBase64String a user friendly wrapper of AesEncrypt which converts a password of any length to 32byte aes256 key and returns a base64 encoded encrypted data
func AesDecrypt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.