miniLockLib = module.exports
Start a key pair operation to make a set of keys.
miniLockLib.makeKeyPair = (secretPhrase, emailAddress, callback) ->
operation = new miniLockLib.KeyPairOperation {secretPhrase, emailAddress}
operation.start(callback)
Start an encrypt operation to make a miniLock file.
miniLockLib.encrypt = (params, callback) ->
operation = new miniLockLib.EncryptOperation params
operation.start(callback)
Start a decrypt operation to unlock a miniLock file.
miniLockLib.decrypt = (params, callback) ->
operation = new miniLockLib.DecryptOperation params
operation.start(callback)
Exports the secret phrase and email address modules.
miniLockLib.SecretPhrase = require "./SecretPhrase"
miniLockLib.EmailAddress = require "./EmailAddress"
Exports the identification module.
miniLockLib.ID = require "./ID"
Exports the miniLock crypto operation constructors.
miniLockLib.KeyPairOperation = require "./KeyPairOperation"
miniLockLib.EncryptOperation = require "./EncryptOperation"
miniLockLib.DecryptOperation = require "./DecryptOperation"
Exports special extras.
miniLockLib.Base58 = require "base-58"
miniLockLib.BLAKE2s = require "./BLAKE2s"
miniLockLib.Entropizer = require "entropizer"
miniLockLib.NaCl = require "tweetnacl"
miniLockLib.NaCl.stream = require("nacl-stream").stream
miniLockLib.scrypt = require "scrypt-async"