apache-crypt
Node.js module for Apache style password encryption using crypt(3).
Last updated 5 years ago by gevorg .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install apache-crypt 
SYNC missed versions from official npm registry.

apache-crypt

Node.js package for Apache style password encryption using crypt(3).

build

Installation

Via git (or downloaded tarball):

$ git clone git://github.com/gevorg/apache-crypt.git

Via npm:

$ npm install apache-crypt

Usage

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, so just run following command in package directory:

$ npm test

License

The MIT License (MIT)

Current Tags

  • 1.2.5                                ...           latest (5 years ago)

19 Versions

  • 1.2.5                                ...           5 years ago
  • 1.1.1                                ...           10 years ago
  • 1.1.0                                ...           10 years ago
  • 1.0.9                                ...           10 years ago
  • 1.0.8                                ...           11 years ago
  • 1.2.4                                ...           6 years ago
  • 1.2.3                                ...           6 years ago
  • 1.2.2                                ...           6 years ago
  • 1.2.1                                ...           9 years ago
  • 1.2.0                                ...           9 years ago
  • 1.1.2                                ...           10 years ago
  • 1.0.7                                ...           11 years ago
  • 1.0.6                                ...           12 years ago
  • 1.0.5                                ...           12 years ago
  • 1.0.4                                ...           12 years ago
  • 1.0.3                                ...           12 years ago
  • 1.0.2                                ...           12 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
Maintainers (1)
Downloads
Today 0
This Week 8
This Month 8
Last Day 1
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (7)
Dependents (2)

Copyright 2013 - present © cnpmjs.org | Home |