fix(password) default algo: set password

This commit is contained in:
coderaiser 2016-01-20 12:52:26 -05:00
parent 955aae36d4
commit caf20ca7b1

View file

@ -6,8 +6,10 @@
module.exports = function(algo, password) {
var result, sha;
if (!algo)
if (!password) {
password = algo;
algo = 'sha512WithRSAEncryption';
}
sha = crypto.createHash(algo);