Documentation ¶
Index ¶
- func CreateRandomSecret() string
- func DecodeFromBase64(encodedText []byte) ([]byte, error)
- func DecryptAndDecode(encryptedText []byte, key string) ([]byte, error)
- func DecryptFromAES256(encryptedText []byte, key string) ([]byte, error)
- func EncodeToBase64(text []byte) []byte
- func EncryptAndEncode(plainText []byte, key string) ([]byte, error)
- func EncryptToAES256(text []byte, key string) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRandomSecret ¶
func CreateRandomSecret() string
Creates a secret key compatible with the required by AES-256 algorithm.
func DecodeFromBase64 ¶
func DecryptAndDecode ¶
Decrypts the provided content by using AES-256 and also decodes the content using std base64.
func EncodeToBase64 ¶
func EncryptAndEncode ¶
Encrypts the provided content by using AES-256 and also encodes the content using std base64.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.