Documentation ¶
Index ¶
- func Sha1Encode(s string) string
- type Rsae
- func (r Rsae) AESDecrypt(ciphertext, key, iv []byte) ([]byte, error)
- func (r Rsae) AESEncrypt(plantText, key, iv []byte) ([]byte, error)
- func (r Rsae) Base64Decode(data string) ([]byte, error)
- func (r Rsae) Base64Encode(data []byte) string
- func (r Rsae) HmacSha1(publicKey, privateKey string) []byte
- func (r Rsae) Md516(data string) string
- func (r Rsae) Md532(data string) string
- func (r Rsae) PKCS7Padding(ciphertext []byte, blockSize int) []byte
- func (r Rsae) PKCS7UnPadding(plantText []byte, blockSize int) []byte
- func (r Rsae) Pbkdf2Sha256(data, salt string, iterations int) string
- func (r Rsae) RSADecrypt(ciphertext string, privateKey []byte) (string, error)
- func (r Rsae) RSAEncrypt(origdata string, publicKey []byte) (string, error)
- func (r Rsae) RSASign(origdata string, privateKey []byte) (string, error)
- func (r Rsae) RSAVerify(origdata, ciphertext string, publicKey []byte) (bool, error)
- func (r Rsae) SHA1(data string) []byte
- func (r Rsae) SHA256(data string) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Sha1Encode ¶
Types ¶
type Rsae ¶
type Rsae struct{}
Rsae rsae
func (Rsae) AESDecrypt ¶
AESDecrypt aes decrypt
func (Rsae) AESEncrypt ¶
AESEncrypt aes encrypt
func (Rsae) Base64Decode ¶
Base64Decode base64 descode
func (Rsae) Base64Encode ¶
Base64Encode base64 encode
func (Rsae) PKCS7Padding ¶
PKCS7Padding pkcs7 padding
func (Rsae) PKCS7UnPadding ¶
PKCS7UnPadding pkcs7 unpadding
func (Rsae) Pbkdf2Sha256 ¶
Pbkdf2Sha256 pbkdf2 sha256
func (Rsae) RSADecrypt ¶
RSADecrypt rsa decarypt
func (Rsae) RSAEncrypt ¶
RSAEncrypt rsa entrypt
Click to show internal directories.
Click to hide internal directories.