Skip to content

Instantly share code, notes, and snippets.

@Reggino
Created March 13, 2018 11:49
Show Gist options
  • Save Reggino/4ff146d137b9ed72de54df2b78fd0e16 to your computer and use it in GitHub Desktop.
Save Reggino/4ff146d137b9ed72de54df2b78fd0e16 to your computer and use it in GitHub Desktop.
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');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment