Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveKeyFromMasterKey ¶
DeriveKeyFromPassphrase derives a cryptographic key from the provided passphrase using Argon2.
Types ¶
type Decryptor ¶
type Decryptor struct {
// contains filtered or unexported fields
}
func NewDecryptor ¶
Decrytor wrap io.CryptStreamWriter and create ciper.Stream automatically
type Encryptor ¶
type Encryptor struct {
// contains filtered or unexported fields
}
func NewEncryptor ¶
Encrytor wrap io.CryptStreamReader and create ciper.Stream automatically
func (*Encryptor) GetHashEncrypt ¶
func (*Encryptor) GetHashOrig ¶
type MasterDecryptor ¶
type MasterDecryptor struct {
// contains filtered or unexported fields
}
MasterDecryptor will on-the-fly decrypt nonce
func NewMasterDecryptor ¶
func NewMasterDecryptor(w io.Writer, key []byte) *MasterDecryptor
The Decrytor wrap io.CryptStreamWriter and create ciper.Stream automatically
Click to show internal directories.
Click to hide internal directories.