Socket
Socket
Sign inDemoInstall

ldap-passwd

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ldap-passwd

Simple password util for ldap userPassword, inspired by https://github.com/peppelinux/pySSHA-slapd


Version published
Weekly downloads
11
decreased by-26.67%
Maintainers
1
Weekly downloads
 
Created
Source

ldap-passwd

Simple password util for ldap userPassword, inspired by https://github.com/peppelinux/pySSHA-slapd

What is it

This is a simple lib and cli tool for generating or verifying the ldap userPassword.

It supports salted:

  • md5
  • sha1
  • sha224
  • sha256
  • sha384
  • sha512

How to use it

CLI usage

  1. npm i -g ldap-passwd or yarn global add ldap-passwd
  2. ldap-passwd

LIB usage

First install this package via npm i ldap-passwd or yarn add ldap-passwd, then import it in your app.

const { checkPassword, hashPassword } = require('ldap-passwd');
// ......
const is_valid = checkPassword(plain_password, hashed_check_password);
const generated_hashed_password = hashPassword('SHA1', plain_password);

Snapshot

asciicast

License

MIT License

Copyright (c) 2020 liudonghua

Keywords

FAQs

Package last updated on 09 Apr 2021

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc