ldap-passwords
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -15,2 +15,3 @@ import { defineConfig } from 'vitepress' | ||
{ text: 'Getting Started', link: '/guide/' }, | ||
{ text: 'ldapVerifyAll', link: '/guide/ldapverifyall' }, | ||
], | ||
@@ -17,0 +18,0 @@ }, |
@@ -45,2 +45,3 @@ import { defineConfig } from 'vitepress' | ||
{ text: 'Começando', link: '/pt/guide/' }, | ||
{ text: 'ldapVerifyAll', link: '/pt/guide/ldapverifyall' }, | ||
], | ||
@@ -47,0 +48,0 @@ }, |
{ | ||
"name": "ldap-passwords", | ||
"type": "module", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "ldap-passwords offers secure password hashing and verification using LDAP password algorithms.", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -107,2 +107,16 @@ <a href="http://ldap-passwords.com/"> | ||
## 🔍 Verify All | ||
1. Import the function into your project: | ||
```ts | ||
import { ldapVerifyAll } from 'ldap-passwords' | ||
``` | ||
2. Validate your plain text password with a MD5, SSHA or SHA512 encrypted password: | ||
**The hashed password can be either a single string or an array of strings. The plain text password will be compared to each hashed password and the function will return true if any of them matches** | ||
```ts | ||
const isValid = ldapVerifyAl('mySuperSecretPassword', arrayOfHashedPasswords) | ||
// return true or false | ||
``` | ||
## 📝 License | ||
@@ -109,0 +123,0 @@ |
277426
43
242
125