Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var crypto = require('crypto');
- var server_seed = 'qTGlqBvPdx.sUlKFIlv2DpZKamLE2q8gpoXazTDXz.YIPlWBfCrTo_WR13ieUMwE';
- var client_seed = '0000201572';
- var nonce = 1;
- var count = 1;
- while (true) {
- var hash = crypto.createHmac('sha512', server_seed).update(client_seed + ':' + nonce.toString()).digest('hex').substring(0, 1);
- if (hash == '0') {
- console.log(' 0', nonce);
- if (count++ == 1e2) break;
- } else if (hash == 'f') {
- console.log(' 1', nonce);
- if (count++ == 1e2) break;
- }
- nonce++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement