Login
OneManager
Home
/
Bethel
/
tmp
/
october-report-20261021
/
node_modules
/
apache-crypt
File
OriginalPic
Thumbnails
CopyAllDownloadUrl
EditTime
Size
src
2026-10-14 12:34:53
462 B
LICENSE
2026-10-21 07:16:33
1.05 KB
package.json
2026-10-21 07:16:33
1.18 KB
README.md
2026-10-21 07:16:33
965 B
# apache-crypt [Node.js](http://nodejs.org/) package for Apache style password encryption using crypt(3). [](https://github.com/gevorg/apache-crypt/actions/workflows/build.yml) ## Installation Via git (or downloaded tarball): ```bash $ git clone git://github.com/gevorg/apache-crypt.git ``` Via [npm](http://npmjs.org/): ```bash $ npm install apache-crypt ``` ## Usage ```javascript const crypt = require("apache-crypt"); // Encrypting password using auto-generated 2 char salt. const encryptedPassword = crypt("mypass"); // Should print true. console.log(crypt("mypass", encryptedPassword) == encryptedPassword); // Should print false. console.log(crypt("notmypass", encryptedPassword) == encryptedPassword); ``` ## Running tests It uses [mocha](https://mochajs.org/), so just run following command in package directory: ```bash $ npm test ``` ## License The MIT License (MIT)
Close
2026-10-29 08:06:38 Thursday 216.73.216.30 Runningtime:1.168s Mem:404.81 KB