Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotSupported is returned when the cipher is not supported ErrNotSupported errNotSupported // ErrKeyInvalid is returned when the cipher key config is invalid ErrKeyInvalid errKeyInvalid // ErrCiphertextInvalid is returned when the ciphertext is invalid ErrCiphertextInvalid errCiphertextInvalid )
Functions ¶
Types ¶
type AlgsMap ¶
type AlgsMap struct {
// contains filtered or unexported fields
}
func NewAlgsMap ¶
func NewAlgsMap() *AlgsMap
type Cipher ¶
type Cipher interface { ID() string Encrypt(plaintext []byte) (string, error) Decrypt(ciphertext string) ([]byte, error) }
Cipher is an encryption interface
Click to show internal directories.
Click to hide internal directories.