Documentation
¶
Index ¶
- func Decrypt(encodedCiphertext string) ([]byte, error)
- func Encrypt(plaintext []byte) (string, error)
- type Encrypter
- func (e *Encrypter) Decrypt(ciphertext []byte) ([]byte, error)
- func (e *Encrypter) DecryptString(encodedCiphertext string) (string, error)
- func (e *Encrypter) DecryptStringHelper(encodedCiphertext string) ([]byte, error)
- func (e *Encrypter) Encrypt(plaintext []byte) ([]byte, error)
- func (e *Encrypter) EncryptString(plaintext string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encrypter ¶
type Encrypter struct {
// contains filtered or unexported fields
}
Encrypter represents an AEAD encrypter/decrypter
func NewEncrypter ¶
NewEncrypter creates a new instance of Encrypter with the provided key
func (*Encrypter) DecryptString ¶
DecryptString decrypts a base64 encoded string
func (*Encrypter) DecryptStringHelper ¶
Helper function for DecryptString to keep method signatures consistent with package level functions
Click to show internal directories.
Click to hide internal directories.