Documentation ¶
Overview ¶
Package driver defines interfaces to be implemented for providers of the secrets package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypter ¶
type Crypter interface { // Decrypt decrypts the ciphertext and returns the plaintext or an error. Decrypt(ctx context.Context, ciphertext []byte) ([]byte, error) // Encrypt encrypts the plaintext and returns the cipher message. Encrypt(ctx context.Context, plaintext []byte) ([]byte, error) }
Crypter holds the key information to encrypt a plain text message into a cipher message, as well as decrypt a cipher message into a plain text message encrypted by the same key.
Click to show internal directories.
Click to hide internal directories.