lib/index.js
function changePassword(masterPassword, newPassword1, newPassword2) {
    if (newPassword1 !== newPassword2) throw new Error("New passwords must match.");
    else {
        var contents = getContents(masterPassword);
        init(newPassword1, contents);
    }
}
function changePassword(masterPassword, newPassword1, newPassword2) {
    if (newPassword1 !== newPassword2) throw new Error("New passwords must match.");
    else {
        var contents = getContents(masterPassword);
        init(newPassword1, contents);
    }
}
function changePassword ( masterPassword , newPassword1 , newPassword2 ) { if ( newPassword1 !== newPassword2 ) throw new Error ( "New passwords must match." ) ; else { var contents = getContents ( masterPassword ) ; init ( newPassword1 , contents ) ; } }
Changes the password of the safetext file.
@param masterPassword
@param newPassword1
@param newPassword2
Changes the password of the safetext file .