1.0.0 • Published 1 year ago

@yousefhusain/md5 v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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')
}