Documentation ¶
Index ¶
- func AesCTREncrypt(origData, key, iv []byte) ([]byte, error)
- func AesDecrypt(crypted, key []byte, iv []byte) ([]byte, error)
- func AesEncrypt(origData, key, iv []byte) ([]byte, error)
- func DecryptRSA(data, privateKey []byte) (string, error)
- func DesEncrypt(origData, key []byte) ([]byte, error)
- func DesEncrypt1(src, key []byte) ([]byte, error)
- func EncryptPKCS1v15(origData, publicKey []byte) (string, error)
- func HmacEncrypt(origData, key []byte, hash crypto.Hash) string
- func HmacEncryptToBase64(origData, key []byte, hash crypto.Hash) string
- func LLEncrypt(plaintext, public_key []byte) string
- func MD5(data string) string
- func MD5Encrypt16(data string) string
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5UnPadding(origData []byte) []byte
- func RsaEncrypt(origData, publicKey []byte) (string, error)
- func SignPKCS1v15(origData, privateKey []byte, hash crypto.Hash) (string, error)
- func VerifyPKCS1v15(origData, signedData, publicKey []byte, hash crypto.Hash) error
- func ZeroPadding(ciphertext []byte, blockSize int) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptRSA ¶
DecryptRSA decrypt given []byte with RSA algorithm
func DesEncrypt ¶
func PKCS5Padding ¶
func PKCS5UnPadding ¶
func RsaEncrypt ¶
func SignPKCS1v15 ¶
rsa 签名
func VerifyPKCS1v15 ¶
rsa 验签
func ZeroPadding ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.