REDROOM
PHP 8.2.30
Path:
Logout
Edit File
Size: 1.24 KB
Close
//proc/self/root/opt/alt/alt-nodejs9/root/usr/lib/node_modules/npm/node_modules/uuid/v5.js
Text
Base64
var sha1 = require('./lib/sha1-browser'); var bytesToUuid = require('./lib/bytesToUuid'); function uuidToBytes(uuid) { // Note: We assume we're being passed a valid uuid string var bytes = []; uuid.replace(/[a-fA-F0-9]{2}/g, function(hex) { bytes.push(parseInt(hex, 16)); }); return bytes; } function stringToBytes(str) { str = unescape(encodeURIComponent(str)); // UTF8 escape var bytes = new Array(str.length); for (var i = 0; i < str.length; i++) { bytes[i] = str.charCodeAt(i); } return bytes; } function v5(name, namespace, buf, offset) { if (typeof(name) == 'string') name = stringToBytes(name); if (typeof(namespace) == 'string') namespace = uuidToBytes(namespace); if (!Array.isArray(name)) throw TypeError('name must be an array of bytes'); if (!Array.isArray(namespace) || namespace.length != 16) throw TypeError('namespace must be uuid string or an Array of 16 byte values'); // Per 4.3 var bytes = sha1(namespace.concat(name)); bytes[6] = (bytes[6] & 0x0f) | 0x50; bytes[8] = (bytes[8] & 0x3f) | 0x80; return buf || bytesToUuid(bytes); } // Pre-defined namespaces, per Appendix C v5.DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; v5.URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; module.exports = v5;
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 2 × Files: 10
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
bin
DIR
-
drwxr-xr-x
2024-03-03 22:42:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
lib
DIR
-
drwxr-xr-x
2024-03-03 22:42:04
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
.eslintrc.json
1.38 KB
lrw-r--r--
2021-09-28 11:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
AUTHORS
169 B
lrw-r--r--
2021-09-28 11:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
HISTORY.md
625 B
lrw-r--r--
2021-09-28 11:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
index.js
120 B
lrw-r--r--
2021-09-28 11:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
LICENSE.md
1.08 KB
lrw-r--r--
2021-09-28 11:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
package.json
1.82 KB
lrw-r--r--
2021-09-28 11:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
README.md
6.29 KB
lrw-r--r--
2021-09-28 11:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
v1.js
2.94 KB
lrw-r--r--
2021-09-28 11:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
v4.js
679 B
lrw-r--r--
2021-09-28 11:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
v5.js
1.24 KB
lrw-r--r--
2021-09-28 11:28:18
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).