Skip to content

ssha ​

1. Import the function into your project: ​

ts
import { ssha } from 'ldap-passwords'

2. Encrypt a plain text password using SSHA: ​

ts
const encryptedPassword = ssha('mySuperSecretPassword')
// return {SSHA}sTIysPunEI4boe6OwgQO+/tRZao2OWJIbDMvY0g2UlM=

Released under the MIT License.