Documentation ¶
Index ¶
- func DecryptBase64ToBytes(encrypted string, key string) []byte
- func DecryptBase64ToString(encrypted string, key string) string
- func DecryptBytesToBytes(encrypted []byte, key string) []byte
- func DecryptBytesToString(encrypted []byte, key string) string
- func DecryptStringToBytes(encrypted string, key string) []byte
- func DecryptStringToString(encrypted string, key string) string
- func EncryptBytesToBase64(src []byte, key string) string
- func EncryptBytesToBytes(src []byte, key string) []byte
- func EncryptBytesToString(src []byte, key string) string
- func EncryptStringToBase64(str, key string) string
- func EncryptStringToBytes(str, key string) []byte
- func EncryptStringToString(str, key string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptBase64ToBytes ¶
DecryptBase64ToBytes decrypts the encrypted base64 string with the given key and returns the decrypted bytes.
func DecryptBase64ToString ¶
DecryptBase64ToString decrypts the encrypted base64 string with the given key and returns the decrypted text.
func DecryptBytesToBytes ¶
DecryptBytesToBytes decrypts the encrypted bytes with the given key and returns the decrypted bytes.
func DecryptBytesToString ¶
DecryptBytesToString decrypts the encrypted bytes with the given key and returns the decrypted string.
func DecryptStringToBytes ¶
DecryptStringToBytes decrypts the encrypted bytes with the given key and returns the decrypted bytes.
func DecryptStringToString ¶
DecryptStringToString decrypts the encrypted bytes with the given key and returns the decrypted text.
func EncryptBytesToBase64 ¶
EncryptBytesToBase64 encrypts the src bytes with the given key and returns the encrypted base64 string.
func EncryptBytesToBytes ¶
EncryptBytesToBytes encrypts the src bytes with the given key and returns the encrypted bytes.
func EncryptBytesToString ¶
EncryptBytesToString encrypts the src bytes with the given key and returns the encrypted string.
func EncryptStringToBase64 ¶
EncryptStringToBase64 encrypts the text with the given key and returns the encrypted base64 string.
func EncryptStringToBytes ¶
EncryptStringToBytes encrypts the text with the given key and returns the encrypted bytes.
func EncryptStringToString ¶
EncryptStringToString encrypts the text with the given key and returns the encrypted text.
Types ¶
This section is empty.