Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( EncrypterMap = map[string]EncrypterFunc{ "AES": NewAESEncrypter, } Providers = []string{ "AES", } )
Functions ¶
This section is empty.
Types ¶
type AESEncrypter ¶
func (*AESEncrypter) Algorithm ¶
func (a *AESEncrypter) Algorithm() string
func (*AESEncrypter) Hasher ¶
func (a *AESEncrypter) Hasher() crypto.Hash
type Encrypter ¶
type Encrypter interface {
Encrypt(io.Reader) ([]byte, error)
Decrypt(io.Reader) ([]byte, error)
Algorithm() string
Hasher() crypto.Hash
}
func NewAESEncrypter ¶
func NewFromEnv ¶
type EncrypterFunc ¶
Click to show internal directories.
Click to hide internal directories.