Documentation ¶
Index ¶
- func AESDecrypt(data, secret string) (str string, err error)
- func AESEncrypt(data, secret string) (str string, err error)
- func DecodeHash(str, salt string) (int64, error)
- func EncodeHash(id int64, salt string) (string, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func RSADecrypt(cipher, priKey []byte) ([]byte, error)
- func RSADecryptStr(str, priKey string) (string, error)
- func RSAEncrypt(data, pubKey []byte) ([]byte, error)
- func RSAEncryptStr(data, pubKey string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeHash ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func RSAEncryptStr ¶
RSA Encrypt With Base64
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.