Skip to content

Instantly share code, notes, and snippets.

View Reggino's full-sized avatar

Tim de Koning Reggino

View GitHub Profile
### 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:
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');
<?php
$password_sha = '5db97263b34ec854d9f385b6be5ef1d45416197b';
$password_pack = pack('H*', $password_sha);
echo $password_pack . "\n";
file_put_contents(__DIR__ . '/output_php.txt', $password_pack);