Documentation ¶
Index ¶
- Variables
- func DecryptPrivWithAES(key, message string) (encry string, err error)
- func DecryptPrivWithAES1(key, message string) (d string, err error)
- func DecryptWithAES(key, message string) (string, error)
- func EncryptPrivWithAES(key, message string) (string, error)
- func EncryptWithAES(key, message string) (string, error)
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5Unpadding(encrypt []byte) []byte
- func RSADecrypt(cipertext, privatekey []byte) (pb []byte, err error)
- func RSAEncrypt(orgidata []byte, publickey []byte) (pb []byte, err error)
- func RSAGen() (puk string, priv string, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBadPublicKey = errors.New(10000, "public key is bad", "")
)
Functions ¶
func DecryptPrivWithAES ¶
DecryptPrivWithAES 解压
func DecryptPrivWithAES1 ¶
func DecryptWithAES ¶
func EncryptPrivWithAES ¶
func EncryptWithAES ¶
func PKCS5Padding ¶
func PKCS5Unpadding ¶
func RSADecrypt ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.