Documentation ¶
Index ¶
- Constants
- func CrypterFromKey(key string, keyTransform string) crypto.Crypter
- func CrypterFromKeyPath(path string, keyTransform string) crypto.Crypter
- func NewReader(reader io.Reader, key []byte) io.Reader
- func NewWriter(writer io.Writer, key []byte) io.WriteCloser
- type Crypter
- type ErrShortKey
- type Reader
- type Writer
Constants ¶
View Source
const KeyTransformBase64 = "base64"
View Source
const KeyTransformHex = "hex"
View Source
const KeyTransformNone = "none"
Variables ¶
This section is empty.
Functions ¶
func CrypterFromKey ¶
CrypterFromKey creates Crypter from key
func CrypterFromKeyPath ¶
CrypterFromKeyPath creates Crypter from key path
Types ¶
type Crypter ¶
type Crypter struct { KeyInline string KeyPath string KeyTransform string // contains filtered or unexported fields }
Crypter is libsodium Crypter implementation
type ErrShortKey ¶
type ErrShortKey struct {
// contains filtered or unexported fields
}
func (ErrShortKey) Error ¶
func (e ErrShortKey) Error() string
Click to show internal directories.
Click to hide internal directories.