Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAesEncryptor ¶
func NewAesEncryptor(keygen KeyGenerator, password string) aesEncryptor
Types ¶
type Encryptor ¶
func GetEncryptor ¶
type KeyGenerator ¶
type NoOpEncryptor ¶
type NoOpEncryptor struct { }
Do not use that. NoOpEncryptor was created specifically for tests.
func (*NoOpEncryptor) Decrypt ¶
func (encryptor *NoOpEncryptor) Decrypt(data []byte) ([]byte, error)
func (*NoOpEncryptor) Encrypt ¶
func (encryptor *NoOpEncryptor) Encrypt(data []byte) []byte
Click to show internal directories.
Click to hide internal directories.