1.0.0 • Published 1 year ago
@yousefhusain/md5 v1.0.0
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')
}
1.0.0
1 year ago