Discover Packages
github.com/drish/cloak
crypt
package
Version:
v0.0.0-...-5016189
Opens a new window with list of versions in this module.
Published: Jun 14, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
encrypted file is encoded in hex and has the following structure:
first 24 bytes = nonce
last line = salt
scrypt derives a 64 bytes key based from the passphrase if its provided
or randomly generates a passphrase if its not provided.
uses nacl box to encrypt the data using derived scrypt key
Source Files
¶
Click to show internal directories.
Click to hide internal directories.