lib/index.js
function init(masterPassword, map) {
    var fileContents = JSON.stringify(map);
    var encryptedFileContents = encryption.encrypt(fileContents, masterPassword);
    file.writeToFile(encryptedFileContents);
}
function init(masterPassword, map) {
    var fileContents = JSON.stringify(map);
    var encryptedFileContents = encryption.encrypt(fileContents, masterPassword);
    file.writeToFile(encryptedFileContents);
}
function init ( masterPassword , map ) { var fileContents = JSON . stringify ( map ) ; var encryptedFileContents = encryption . encrypt ( fileContents , masterPassword ) ; file . writeToFile ( encryptedFileContents ) ; }
Make a new safetext file with encrypted contents.
@param masterPassword
@param map
@returns {Promise.<TResult>}
Make a new safetext file with encrypted contents .