Documentation ¶
Index ¶
- type Crypto
- type CryptoHelper
- func (c *CryptoHelper) Decrypt(key, ciphertext []byte) ([]byte, error)
- func (c *CryptoHelper) DecryptRSA(privKey *rsa.PrivateKey, ciphertext []byte) ([]byte, error)
- func (c *CryptoHelper) Encrypt(key, plaintext []byte) ([]byte, error)
- func (c *CryptoHelper) EncryptRSA(pubKey *rsa.PublicKey, plaintext []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoHelper ¶
type CryptoHelper struct { }
func (*CryptoHelper) Decrypt ¶
func (c *CryptoHelper) Decrypt(key, ciphertext []byte) ([]byte, error)
func (*CryptoHelper) DecryptRSA ¶
func (c *CryptoHelper) DecryptRSA(privKey *rsa.PrivateKey, ciphertext []byte) ([]byte, error)
func (*CryptoHelper) Encrypt ¶
func (c *CryptoHelper) Encrypt(key, plaintext []byte) ([]byte, error)
func (*CryptoHelper) EncryptRSA ¶
Click to show internal directories.
Click to hide internal directories.