-
-
Save hamishcampbell/5793542 to your computer and use it in GitHub Desktop.
This file contains 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
console.log(require('crypto').createHash('sha1').update('blob 14\0Hello, World!').digest('hex')); | |
$> d4fcfe4d339d4e59d168fdf3c0ad445fa980a7d6 |
This file contains 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
>>> from hashlib import sha1 | |
>>> sha1('blob 14\0Hello, World!').hexdigest() | |
'd4fcfe4d339d4e59d168fdf3c0ad445fa980a7d6' |
This file contains 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
echo -e 'blob 14\0Hello, World!' | shasum -a 1 | |
$> 8ab686eafeb1f44702738c8b0f24f2567c36da6d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment