Documentation ¶
Index ¶
- func NewECBEncrypter(b cipher.Block) cipher.BlockMode
- type AES
- func (a *AES) Decrypt(ciphertext, key, iv []byte) ([]byte, error)
- func (a *AES) ECBDecrypt(ciphertext, key []byte) ([]byte, error)
- func (a *AES) ECBEncrypt(plantText, key []byte) ([]byte, error)
- func (a *AES) Encrypt(plantText, key, iv []byte) ([]byte, error)
- func (a *AES) GCMDecrypt(key []byte, nonce []byte, cipherTextBase64, additionalData string) (string, error)
- func (a *AES) GCMEncrypt(key []byte, nonce []byte, plainText, additionalData string) (string, error)
- type Base64
- type MD5
- type PKCS7
- type RSA
- func (r *RSA) Decrypt(ciphertext string, privateKey []byte) (string, error)
- func (r *RSA) Encrypt(origdata string, publicKey []byte) (string, error)
- func (r *RSA) Sign(origdata string, privateKey []byte) (string, error)
- func (r *RSA) SignWithSha256(origdata string, privateKey []byte) (string, error)
- func (r *RSA) Verify(origdata, ciphertext string, publicKey []byte) (bool, error)
- func (r *RSA) VerifyWithSha256(origdata, ciphertext string, publicKey []byte) (bool, error)
- type SHA
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AES ¶
type AES struct{}
AES aes
func (*AES) ECBDecrypt ¶ added in v1.0.2
ECBDecrypt aes decrypt ecb
func (*AES) ECBEncrypt ¶ added in v1.0.2
ECBEncrypt aes encrypt ecb
func (*AES) GCMDecrypt ¶ added in v1.0.5
type RSA ¶
type RSA struct{}
RSA rsa
func (*RSA) SignWithSha256 ¶ added in v1.0.4
SignWithSha256 sign with sha256
Click to show internal directories.
Click to hide internal directories.