Add Argon2 hash operation

This commit is contained in:
Tan Zhen Yong 2019-10-07 02:24:09 +08:00
parent 2efd075803
commit 2fab1028c5
No known key found for this signature in database
GPG key ID: 710D1754497C25B1
6 changed files with 126 additions and 5 deletions

View file

@ -133,6 +133,11 @@ Tiger-128`;
}),
it("argon2", async () => {
const result = await chef.argon2("argon2password");
assert.strictEqual(result.toString(), "$argon2i$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$s43my9eBljQADuF/LWCG8vGqwAJzOorKQ0Yog8jFvbw");
}),
it("Bcrypt", async () => {
const result = await chef.bcrypt("Put a Sock In It");
const strResult = result.toString();