Documentation ¶
Index ¶
- Constants
- type Cryptor
- func (c *Cryptor) DecryptDir(dirName string, outDirName string) error
- func (c *Cryptor) DecryptFile(fname string, outFName string) error
- func (c *Cryptor) EncryptDir(dirName string, outDirName string) error
- func (c *Cryptor) EncryptFile(fname string, outFName string) error
- func (c *Cryptor) Save(fname string) error
- type CryptorType
Constants ¶
View Source
const ( DefaultBufferSize = 1 << 20 AuthMSGLength = 16 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cryptor ¶
type Cryptor struct { cipher.AEAD `json:"-"` //types support now chacha20poly1305,xchacha20poly1305 Type CryptorType `josn:"type"` Key []byte `josn:"key"` }
func LoadFromJson ¶
type CryptorType ¶
type CryptorType int
const ( CryptorChacha20poly1305 CryptorType = iota CryptorXChacha20poly1305 )
Click to show internal directories.
Click to hide internal directories.