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 : 3.147.44.253
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 /
browserify-des /
Delete
Unzip
Name
Size
Permission
Date
Action
.travis.yml
85
B
-rw-r--r--
1985-10-26 08:15
index.js
1.17
KB
-rw-r--r--
1985-10-26 08:15
license
1.09
KB
-rw-r--r--
1985-10-26 08:15
modes.js
301
B
-rw-r--r--
1985-10-26 08:15
package.json
1.56
KB
-rw-r--r--
2021-02-04 21:24
readme.md
174
B
-rw-r--r--
1985-10-26 08:15
test.js
2.57
KB
-rw-r--r--
1985-10-26 08:15
Save
Rename
var test = require('tape') var DES = require('./') var modes = require('./modes') var crypto = require('crypto') Object.keys(modes).forEach(function (mode) { test(mode, function (t) { var i = 0 while (++i < 10) { runOnce(i) } function runOnce (i) { t.test('run: ' + i, function (t) { t.plan(2) var key = crypto.randomBytes(modes[mode].key) var iv = crypto.randomBytes(modes[mode].iv) var text = crypto.randomBytes(200) var ourEncrypt try { ourEncrypt = new DES({ mode: mode, key: key, iv: iv }) } catch (e) { t.notOk(e, e.stack) } var nodeEncrypt try { nodeEncrypt = crypto.createCipheriv(mode, key, iv) } catch (e) { t.notOk(e, e.stack) } var ourCipherText = Buffer.concat([ourEncrypt.update(text), ourEncrypt.final()]) var nodeCipherText = Buffer.concat([nodeEncrypt.update(text), nodeEncrypt.final()]) t.equals(nodeCipherText.toString('hex'), ourCipherText.toString('hex')) var ourDecrypt = new DES({ mode: mode, key: key, iv: iv, decrypt: true }) var plainText = Buffer.concat([ourDecrypt.update(ourCipherText), ourDecrypt.final()]) t.equals(text.toString('hex'), plainText.toString('hex')) }) t.test('run text: ' + i, function (t) { t.plan(2) var key = crypto.randomBytes(32).toString('base64').slice(0, modes[mode].key) var iv = crypto.randomBytes(32).toString('base64').slice(0, modes[mode].iv) var text = crypto.randomBytes(200) var ourEncrypt try { ourEncrypt = new DES({ mode: mode, key: key, iv: iv }) } catch (e) { t.notOk(e, e.stack) } var nodeEncrypt try { nodeEncrypt = crypto.createCipheriv(mode, key, iv) } catch (e) { t.notOk(e, e.stack) } var ourCipherText = Buffer.concat([ourEncrypt.update(text), ourEncrypt.final()]) var nodeCipherText = Buffer.concat([nodeEncrypt.update(text), nodeEncrypt.final()]) t.equals(nodeCipherText.toString('hex'), ourCipherText.toString('hex')) var ourDecrypt = new DES({ mode: mode, key: key, iv: iv, decrypt: true }) var plainText = Buffer.concat([ourDecrypt.update(ourCipherText), ourDecrypt.final()]) t.equals(text.toString('hex'), plainText.toString('hex')) }) } }) })