0.1.3 • Published 3 years ago

ldap-passwd v0.1.3

Weekly downloads
2
License
MIT
Repository
github
Last release
3 years ago

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

0.1.3

3 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago