Documentation
¶
Index ¶
- Constants
- func Decrypt(ciphertext, key []byte) (decrypted []byte, err error)
- func DecryptToString(base64Text, key string) (plantText string, err error)
- func Encrypt(plantText, key []byte) (encrypted []byte, err error)
- func EncryptToString(plantText, key string) (base64Text string, err error)
- func Key(key ...string) []byte
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(plantText []byte) []byte
- func PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func PKCS7UnPadding(plantText []byte, blockSize int) []byte
Constants ¶
View Source
const DEFAULT_KEY = "abcdefghijklmnopkrstuvwsyz012345"
Variables ¶
This section is empty.
Functions ¶
func DecryptToString ¶
func EncryptToString ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func PKCS7Padding ¶
func PKCS7UnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.