Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AES ¶
type AES struct {
// The encryption key must be 256 bits long.
Key []byte
// Alternativly to the key, a b64 encoded string can be set as the key
// and will be decoded on start if Key is nil.
KeyB64 string `json:"key"`
}
AES encryption encrypts with a key 256 bits key using an aes 256 cfb scheme and an IV that is appended to the output stream.
func (*AES) Decode ¶
Decode an encrypted stream that start with an IV.
func (*AES) Encode ¶
Encode encrypts a stream with the key and generates an IV that will be appended to the stream.
Source Files
¶
- aes.go
Click to show internal directories.
Click to hide internal directories.