🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

apache-crypt

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
a

apache-crypt

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

1.2.6
latest
100

Supply Chain Security

100

Vulnerability

71

Quality

77

Maintenance

100

License

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Issues
1

What is apache-crypt?

The apache-crypt npm package provides functions to create and verify passwords using the Apache htpasswd crypt algorithm. It is useful for managing user authentication in web applications that use Apache's htpasswd files.

What are apache-crypt's main functionalities?

Encrypt Password

This feature allows you to encrypt a plain text password using the Apache htpasswd crypt algorithm. The encrypted password can then be stored securely.

const apacheCrypt = require('apache-crypt');
const encryptedPassword = apacheCrypt('myPassword');
console.log(encryptedPassword);

Verify Password

This feature allows you to verify a plain text password against an encrypted password. It is useful for authentication purposes.

const apacheCrypt = require('apache-crypt');
const encryptedPassword = apacheCrypt('myPassword');
const isMatch = apacheCrypt('myPassword', encryptedPassword) === encryptedPassword;
console.log(isMatch);

Other packages similar to apache-crypt

FAQs

Package last updated on 21 Sep 2022

Did you know?

Socket

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