X7ROOT File Manager
Current Path:
/lib/node_modules/npm/node_modules/uuid/lib
lib
/
node_modules
/
npm
/
node_modules
/
uuid
/
lib
/
ðŸ“
..
📄
bytesToUuid.js
(747 B)
📄
md5-browser.js
(6.66 KB)
📄
md5.js
(576 B)
📄
rng-browser.js
(1.28 KB)
📄
rng.js
(246 B)
📄
sha1-browser.js
(2.28 KB)
📄
sha1.js
(579 B)
📄
v35.js
(1.58 KB)
Editing: 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;
Upload File
Create Folder