Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrorNotSupported is returned when the cipher is not supported ErrorNotSupported errorNotSupported // ErrorKeyInvalid is returned when the cipher key config is invalid ErrorKeyInvalid errorKeyInvalid // ErrorCiphertextInvalid is returned when the ciphertext is invalid ErrorCiphertextInvalid errorCiphertextInvalid )
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.