Documentation ¶
Index ¶
- func AesCTREncrypt(origData, key, iv []byte) ([]byte, error)
- func AesDecrypt(crypted, key []byte) ([]byte, error)
- func AesEncrypt(origData, key []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 Encrypt(origData, key []byte, hash crypto.Hash) string
- func EncryptPKCS1v15(origData, publicKey []byte) (string, error)
- func GetAesKey() []byte
- func HmacSha256EncryptToBase64(origData, key []byte) 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 RsaDecryptNew(ciphertext, privateKey []byte) ([]byte, error)
- 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 RsaDecryptNew ¶
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.