Documentation
¶
Index ¶
- Variables
- func AesDecEncode(encodeStr string, key []byte) ([]byte, error)
- func AesDecrypt(crypted, key []byte) ([]byte, error)
- func AesEncEncode(origData, key []byte) (string, error)
- func AesEncrypt(origData, key []byte) ([]byte, error)
- func GetKey() []byte
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func SetKey(s []byte)
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
- func ZeroUnPadding(origData []byte) []byte
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Key = []byte("suckdaNaanddf394des239")
)
aes default key
Functions ¶
func AesDecrypt ¶
func AesEncEncode ¶
func AesEncrypt ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func ZeroPadding ¶
func ZeroUnPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.