mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
fix(password) default algo: set password
This commit is contained in:
parent
955aae36d4
commit
caf20ca7b1
1 changed files with 3 additions and 1 deletions
|
|
@ -6,8 +6,10 @@
|
|||
module.exports = function(algo, password) {
|
||||
var result, sha;
|
||||
|
||||
if (!algo)
|
||||
if (!password) {
|
||||
password = algo;
|
||||
algo = 'sha512WithRSAEncryption';
|
||||
}
|
||||
|
||||
sha = crypto.createHash(algo);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue