Documentation ¶
Index ¶
- func DecryptBase64ToBytes(encrypted string, key string) []byte
- func DecryptBase64ToText(encrypted string, key string) string
- func DecryptBytesToBytes(encrypted []byte, key string) []byte
- func DecryptBytesToString(encrypted []byte, key string) string
- func DecryptTextToBytes(encrypted string, key string) []byte
- func DecryptTextToText(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 EncryptTextToBase64(text, key string) string
- func EncryptTextToBytes(text, key string) []byte
- func EncryptTextToText(text, 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 DecryptBase64ToText ¶
DecryptBase64ToText 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 DecryptTextToBytes ¶
DecryptTextToBytes decrypts the encrypted bytes with the given key and returns the decrypted bytes.
func DecryptTextToText ¶
DecryptTextToText 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 EncryptTextToBase64 ¶
EncryptTextToBase64 encrypts the text with the given key and returns the encrypted base64 string.
func EncryptTextToBytes ¶
EncryptTextToBytes encrypts the text with the given key and returns the encrypted bytes.
func EncryptTextToText ¶
EncryptTextToText encrypts the text with the given key and returns the encrypted text.
Types ¶
This section is empty.