Documentation ¶
Index ¶
- Constants
- func CommandList(mapped, short bool)
- func CommandRead(fileName string)
- func CommandUnlock()
- func CommandWrite(fileName string)
- func ConfigWrite(configDir string, config Config, nonce, key, salt []byte)
- func Decrypt(ciphertext, nonce, key []byte) ([]byte, error)
- func DecryptFile(path string, password []byte) (cleartext, nonce, key, salt []byte)
- func Encrypt(cleartext, nonce, key []byte) ([]byte, error)
- func EncryptFile(path string, cleartext, nonce, key, salt []byte)
- func NewKey(salt, password []byte) []byte
- func NewNonce() []byte
- func RandomString(length int, complete, noNumber, noSpecial bool) string
- func VersionedJoin(in ...[]byte) []byte
- func VersionedSplit(in []byte) (version uint32, ciphertext, nonce, salt []byte, err error)
- type Config
Constants ¶
View Source
const Version uint32 = 1
Variables ¶
This section is empty.
Functions ¶
func CommandList ¶
func CommandList(mapped, short bool)
func CommandRead ¶
func CommandRead(fileName string)
func CommandUnlock ¶
func CommandUnlock()
func CommandWrite ¶
func CommandWrite(fileName string)
func ConfigWrite ¶
func DecryptFile ¶
func EncryptFile ¶
func RandomString ¶
func VersionedJoin ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.