Server IP : 68.65.120.251 / Your IP : 3.129.89.50 [ Web Server : LiteSpeed System : Linux server105.web-hosting.com 4.18.0-513.18.1.lve.el8.x86_64 #1 SMP Thu Feb 22 12:55:50 UTC 2024 x86_64 User : travtpib ( 6521) PHP Version : 7.4.33 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules.bundled/uuid/lib/ |
Upload File : |
'use strict'; var crypto = require('crypto'); function sha1(bytes) { // support modern Buffer API if (typeof Buffer.from === 'function') { if (Array.isArray(bytes)) bytes = Buffer.from(bytes); else if (typeof bytes === 'string') bytes = Buffer.from(bytes, 'utf8'); } // support pre-v4 Buffer API else { if (Array.isArray(bytes)) bytes = new Buffer(bytes); else if (typeof bytes === 'string') bytes = new Buffer(bytes, 'utf8'); } return crypto.createHash('sha1').update(bytes).digest(); } module.exports = sha1;