@yousefhusain/md5
v1.0.0
Published
MD5 password hash for pure javascript
Downloads
6
Maintainers
Readme
MD5 password hash for pure javascript
Installation
Install via npm
npm i --save @yousefhusain/md5
Install via bun
bun add @yousefhusain/md5
How To Use?
import MD5 from '@yousefhusain/md5'
// hash
const plainTextPassword = 'myPassword123'
const hashedPassword = MD5.hash(plainTextPassword)
// compare
if (MD5.compare(plainTextPassword, hashedPassword)) {
console.log('Password you entered is right.');
} else {
console.log('Password you entered is not right')
}