Created
August 30, 2021 01:15
-
-
Save remarkablemark/968d2b8e3e4261ff4c237c7ced0065ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { createHash } = require('crypto'); | |
function hash(string) { | |
return createHash('sha256').update(string).digest('hex'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is in PHP and python "they give same result"

but in javascript
