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.135.246.88
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp-musonza /
node_modules /
md5 /
Delete
Unzip
Name
Size
Permission
Date
Action
.npmignore
19
B
-rw-r--r--
2012-09-11 08:08
.travis.yml
42
B
-rw-r--r--
2012-09-11 07:57
LICENSE
1.47
KB
-rw-r--r--
2012-06-18 09:31
README.md
3.13
KB
-rw-r--r--
2015-07-15 21:40
md5.js
5.86
KB
-rw-r--r--
2016-08-31 21:37
package.json
1.44
KB
-rw-r--r--
2021-02-04 21:24
test.js
1.33
KB
-rw-r--r--
2016-08-31 21:38
Save
Rename
var md5 = require('./md5.js'); var assert = require('assert'); describe('md5', function () { it('should throw an error for `undefined`', function() { assert.throws(function() { md5(undefined); }); }); it('should throw an error for `null`', function() { assert.throws(function() { md5(null); }); }); it('should return the expected MD5 hash for "message"', function() { assert.equal('78e731027d8fd50ed642340b7c9a63b3', md5('message')); }); it('should not return the same hash for random numbers twice', function() { var msg1 = Math.floor((Math.random() * 100000) + 1) + (new Date).getTime(); var msg2 = Math.floor((Math.random() * 100000) + 1) + (new Date).getTime(); if (msg1 !== msg2) { assert.notEqual(md5(msg1), md5(msg2)); } else { assert.equal(md5(msg1), md5(msg1)); } }); it('should support Node.js Buffers', function() { var buffer = new Buffer('message áßäöü', 'utf8'); assert.equal(md5(buffer), md5('message áßäöü')); }) it('should be able to use a binary encoded string', function() { var hash1 = md5('abc', { asString: true }); var hash2 = md5(hash1 + 'a', { asString: true, encoding : 'binary' }); var hash3 = md5(hash1 + 'a', { encoding : 'binary' }); assert.equal(hash3, '131f0ac52813044f5110e4aec638c169'); }); });