Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
greenpreneurs /
node_modules /
uid-safe /
[ HOME SHELL ]
Name
Size
Permission
Action
HISTORY.md
944
B
-rw-r--r--
LICENSE
1.15
KB
-rw-r--r--
README.md
2.11
KB
-rw-r--r--
index.js
1.89
KB
-rw-r--r--
package.json
1.23
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : README.md
# uid-safe [![NPM Version][npm-image]][npm-url] [![NPM Downloads][downloads-image]][downloads-url] [![Node.js Version][node-version-image]][node-version-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url] URL and cookie safe UIDs Create cryptographically secure UIDs safe for both cookie and URL usage. This is in contrast to modules such as [rand-token](https://www.npmjs.com/package/rand-token) and [uid2](https://www.npmjs.com/package/uid2) whose UIDs are actually skewed due to the use of `%` and unnecessarily truncate the UID. Use this if you could still use UIDs with `-` and `_` in them. ## Installation ```sh $ npm install uid-safe ``` ## API ```js var uid = require('uid-safe') ``` ### uid(byteLength, callback) Asynchronously create a UID with a specific byte length. Because `base64` encoding is used underneath, this is not the string length. For example, to create a UID of length 24, you want a byte length of 18. ```js uid(18, function (err, string) { if (err) throw err // do something with the string }) ``` ### uid(byteLength) Asynchronously create a UID with a specific byte length and return a `Promise`. **Note**: To use promises in Node.js _prior to 0.12_, promises must be "polyfilled" using `global.Promise = require('bluebird')`. ```js uid(18).then(function (string) { // do something with the string }) ``` ### uid.sync(byteLength) A synchronous version of above. ```js var string = uid.sync(18) ``` ## License [MIT](LICENSE) [npm-image]: https://img.shields.io/npm/v/uid-safe.svg [npm-url]: https://npmjs.org/package/uid-safe [node-version-image]: https://img.shields.io/node/v/uid-safe.svg [node-version-url]: https://nodejs.org/en/download/ [travis-image]: https://img.shields.io/travis/crypto-utils/uid-safe/master.svg [travis-url]: https://travis-ci.org/crypto-utils/uid-safe [coveralls-image]: https://img.shields.io/coveralls/crypto-utils/uid-safe/master.svg [coveralls-url]: https://coveralls.io/r/crypto-utils/uid-safe?branch=master [downloads-image]: https://img.shields.io/npm/dm/uid-safe.svg [downloads-url]: https://npmjs.org/package/uid-safe
Close