Socket
Socket
Sign inDemoInstall

apache-crypt

Package Overview
Dependencies
1
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    apache-crypt

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


Version published
Weekly downloads
412K
increased by7.59%
Maintainers
1
Install size
24.8 kB
Created
Weekly downloads
 

Readme

Source

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)

Keywords

FAQs

Last updated on 21 Sep 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc