Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.188.39.197
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp_probe /
node_modules /
sha.js /
test /
Delete
Unzip
Name
Size
Permission
Date
Action
hash.js
1.52
KB
-rw-r--r--
2021-02-04 21:24
test.js
2.45
KB
-rw-r--r--
2021-02-04 21:24
vectors.js
1.6
KB
-rw-r--r--
2021-02-04 21:24
Save
Rename
var tape = require('tape') var vectors = require('hash-test-vectors') // var from = require('bops/typedarray/from') var Buffer = require('safe-buffer').Buffer var createHash = require('../') function makeTest (alg, i, verbose) { var v = vectors[i] tape(alg + ': NIST vector ' + i, function (t) { if (verbose) { console.log(v) console.log('VECTOR', i) console.log('INPUT', v.input) console.log(Buffer.from(v.input, 'base64').toString('hex')) } var buf = Buffer.from(v.input, 'base64') t.equal(createHash(alg).update(buf).digest('hex'), v[alg]) i = ~~(buf.length / 2) var buf1 = buf.slice(0, i) var buf2 = buf.slice(i, buf.length) console.log(buf1.length, buf2.length, buf.length) console.log(createHash(alg)._block.length) t.equal( createHash(alg) .update(buf1) .update(buf2) .digest('hex'), v[alg] ) var j, buf3 i = ~~(buf.length / 3) j = ~~(buf.length * 2 / 3) buf1 = buf.slice(0, i) buf2 = buf.slice(i, j) buf3 = buf.slice(j, buf.length) t.equal( createHash(alg) .update(buf1) .update(buf2) .update(buf3) .digest('hex'), v[alg] ) setTimeout(function () { // avoid "too much recursion" errors in tape in firefox t.end() }) }) } if (process.argv[2]) { makeTest(process.argv[2], parseInt(process.argv[3], 10), true) } else { vectors.forEach(function (v, i) { makeTest('sha', i) makeTest('sha1', i) makeTest('sha224', i) makeTest('sha256', i) makeTest('sha384', i) makeTest('sha512', i) }) }