Skip to content

Commit

Permalink
No need to wrap crypto512 output
Browse files Browse the repository at this point in the history
  • Loading branch information
monkbroc committed Jan 24, 2025
1 parent f3d35f7 commit 9b6b7b1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/cmd/setup-tachyon.js
Original file line number Diff line number Diff line change
Expand Up @@ -281,10 +281,7 @@ module.exports = class SetupTachyonCommands extends CLICommandBase {

_generateShadowCompatibleHash(password) {
const salt = crypto.randomBytes(12).toString('base64');
var hash = sha512crypt(password, `$6$${salt}`);
hash.update(salt + password);
const value = hash.digest('hex');
return `$6$${salt}$${value}`;
return sha512crypt(password, `$6$${salt}`);
}

async _createXmlFile(configBlobPath) {
Expand Down

0 comments on commit 9b6b7b1

Please sign in to comment.