Documentation ¶
Index ¶
- func Decrypt(data []byte, key []byte, includeLength bool) []byte
- func DecryptString(str, key string, includeLength bool) (string, error)
- func DecryptURLToStdString(str, key string, includeLength bool) (string, error)
- func Encrypt(data []byte, key []byte, includeLength bool) []byte
- func EncryptStdToURLString(str, key string, includeLength bool) string
- func EncryptString(str, key string, includeLength bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Decrypt ¶
Decrypt the data with key. data is the bytes to be decrypted. key is the decrypted key. It is the same as the encrypt key.
func DecryptString ¶
Decrypt the data with key. data is the string to be decrypted. key is the decrypted key. It is the same as the encrypt key.
func DecryptURLToStdString ¶
Decrypt the URL string with key and convert the URL string to the origin string
func Encrypt ¶
Encrypt the data with key. data is the bytes to be encrypted. key is the encrypt key. It is the same as the decrypt key.
func EncryptStdToURLString ¶
Encrypt the string with key and convert the string to URL format
func EncryptString ¶
Encrypt the data with key. data is the string to be encrypted. key is the string of encrypt key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.