13 lines
312 B
Markdown
13 lines
312 B
Markdown
# Password Helper
|
|
|
|
ensuring secure password storage on the server side
|
|
|
|
```js
|
|
const password_helper = require('@scode/password-helper');
|
|
|
|
const hash = await password_helper.hash('foo');
|
|
|
|
await password_helper.verify(hash, 'foo'); // returns true;
|
|
await password_helper.verify(hash, 'bar'); // returns false;
|
|
```
|