Submit
Path:
~
/
/
proc
/
self
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
uuid
/
lib
/
File Content:
md5.js
'use strict'; var crypto = require('crypto'); function md5(bytes) { if (typeof Buffer.from === 'function') { // Modern Buffer API if (Array.isArray(bytes)) { bytes = Buffer.from(bytes); } else if (typeof bytes === 'string') { bytes = Buffer.from(bytes, 'utf8'); } } else { // Pre-v4 Buffer API if (Array.isArray(bytes)) { bytes = new Buffer(bytes); } else if (typeof bytes === 'string') { bytes = new Buffer(bytes, 'utf8'); } } return crypto.createHash('md5').update(bytes).digest(); } module.exports = md5;
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
bytesToUuid.js
747 bytes
0644
md5-browser.js
6824 bytes
0644
md5.js
576 bytes
0644
rng-browser.js
1312 bytes
0644
rng.js
246 bytes
0644
sha1-browser.js
2338 bytes
0644
sha1.js
579 bytes
0644
v35.js
1622 bytes
0644
N4ST4R_ID | Naxtarrr