2023-04-04 21:52:10 +02:00
|
|
|
'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
|
2023-04-04 22:09:25 +02:00
|
|
|
'f70baff6e80e83a2fc5af752f4b57b6b73442f913fc6446b6cb62e3f5f56f9b18c51c3461081239fdac6e9f8498a95ecfabb0b927db8a9ee2de80ed40469b034'
|
2023-04-04 21:52:10 +02:00
|
|
|
);
|
|
|
|
});
|
|
|
|
});
|