Skip to content

Instantly share code, notes, and snippets.

@remarkablemark
Created August 30, 2021 01:15
Show Gist options
  • Save remarkablemark/968d2b8e3e4261ff4c237c7ced0065ba to your computer and use it in GitHub Desktop.
Save remarkablemark/968d2b8e3e4261ff4c237c7ced0065ba to your computer and use it in GitHub Desktop.
const { createHash } = require('crypto');
function hash(string) {
return createHash('sha256').update(string).digest('hex');
}
@muath-ye
Copy link

This is in PHP and python "they give same result"
image

but in javascript
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment