add scrypt pbkdf
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-04-04 21:52:10 +02:00
parent 7d41f8689f
commit 78a535087a
7 changed files with 53 additions and 4 deletions

16
test/spec/pbkdf.js Normal file
View File

@ -0,0 +1,16 @@
'use strict';
const crypto = require ('../../index');
describe ('hashing', () => {
it ('scrypt', async () => {
const hash = await crypto.pbkdf_scrypt ('a', 'b');
expect (
hash
)
.toEqual (
// eslint-disable-next-line max-len
'1c357645d521cce3d015441a4215814d8acbf98ed671880ba369039784de05043f0fd9867a0f265b6e5303da202ec4d541bd11752079d8f490ed1fc52e547497'
);
});
});