Documentation ¶
Index ¶
- 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 ErrBadPublicKey(format string, a ...interface{}) error
- func IsErrBadPublicKey(err error) bool
- func PKCS5Padding(ciphertext []byte, blockSize int) []byte
- func PKCS5Unpadding(encrypt []byte) []byte
- func RSADecrypt(cipertext, privatekey []byte) (pb []byte, err error)
- func RSADecryptWitPriv(cipertext []byte, priv *rsa.PrivateKey) (pb []byte, err error)
- func RSAEncrypt(orgidata []byte, publickey []byte) (pb []byte, err error)
- func RSAEncryptWithPub(orgidata []byte, pub *rsa.PublicKey) (pb []byte, err error)
- func RSAGen() (puk string, priv string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptPrivWithAES ¶
DecryptPrivWithAES 解压
func DecryptPrivWithAES1 ¶
func DecryptWithAES ¶
func EncryptPrivWithAES ¶
func EncryptWithAES ¶
func ErrBadPublicKey ¶
func IsErrBadPublicKey ¶
func PKCS5Padding ¶
func PKCS5Unpadding ¶
func RSADecrypt ¶
func RSADecryptWitPriv ¶
func RSADecryptWitPriv(cipertext []byte, priv *rsa.PrivateKey) (pb []byte, err error)
func RSAEncryptWithPub ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.