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
### Keybase proof | |
I hereby claim: | |
* I am reggino on github. | |
* I am reggino (https://keybase.io/reggino) on keybase. | |
* I have a public key ASAG7Eee62I4hBhxf8Bzwl6NasKAq8ZqYd6fOA5myzabJAo | |
To claim this, I am signing this object: |
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
var fs = require('fs'); | |
var pack = require('locutus/php/misc/pack'); | |
var password_sha = '5db97263b34ec854d9f385b6be5ef1d45416197b'; | |
var password_pack = pack('H*', password_sha); | |
console.log(password_pack); | |
fs.writeFileSync(__dirname + '/output_locutus.txt', password_pack, 'binary'); |
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
<?php | |
$password_sha = '5db97263b34ec854d9f385b6be5ef1d45416197b'; | |
$password_pack = pack('H*', $password_sha); | |
echo $password_pack . "\n"; | |
file_put_contents(__DIR__ . '/output_php.txt', $password_pack); |