Skip to content

Commit

Permalink
use sha256 in place of sha1 (#247)
Browse files Browse the repository at this point in the history
Signed-off-by: Matteo Collina <hello@matteocollina.com>
  • Loading branch information
mcollina authored Apr 22, 2024
1 parent a94dfbb commit 4f8384e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ module.exports = class Session {
})

return crypto
.createHash('sha1')
.createHash('sha256')
.update(str, 'utf8')
.digest('hex')
}
Expand Down

0 comments on commit 4f8384e

Please sign in to comment.