mirror of
https://github.com/gchq/CyberChef
synced 2026-01-17 07:53:28 +00:00
Tidied up Argon2 operations
This commit is contained in:
@@ -133,18 +133,6 @@ 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("argon2 compare", async () => {
|
||||
const result = await chef.argon2Compare("argon2password", {
|
||||
hash: "$argon2i$v=19$m=4096,t=3,p=1$c29tZXNhbHQ$s43my9eBljQADuF/LWCG8vGqwAJzOorKQ0Yog8jFvbw"
|
||||
});
|
||||
assert.strictEqual(result.toString(), "Match: argon2password");
|
||||
}),
|
||||
|
||||
it("Bcrypt", async () => {
|
||||
const result = await chef.bcrypt("Put a Sock In It");
|
||||
const strResult = result.toString();
|
||||
|
||||
Reference in New Issue
Block a user