Result from mockHashPassword.
import type { MockHashPasswordResult } from "@sebastienrousseau/crypto-testing";const result: MockHashPasswordResult = mockHashPassword("secret");console.log(result.hash, result.phc); Copy
import type { MockHashPasswordResult } from "@sebastienrousseau/crypto-testing";const result: MockHashPasswordResult = mockHashPassword("secret");console.log(result.hash, result.phc);
Hex-encoded hash (deterministic, NOT Argon2).
Hex-encoded salt.
Dummy params matching the Argon2 shape.
Time cost (iterations).
Memory cost (KiB).
Parallelism factor.
Algorithm identifier.
PHC-format string.
Result from mockHashPassword.
Example