ldap-passwd
v0.1.3
Published
Simple password util for ldap userPassword, inspired by https://github.com/peppelinux/pySSHA-slapd
Downloads
56
Readme
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
- npm i -g ldap-passwd or yarn global add ldap-passwd
- 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
License
MIT License
Copyright (c) 2020 liudonghua