Create a test password hash using mock hashing.
Optional
Password to hash. Defaults to "test-password-123".
"test-password-123"
import { createTestPasswordHash } from "@sebastienrousseau/crypto-testing";const result = createTestPasswordHash("hunter2");console.log(result.hash, result.phc); Copy
import { createTestPasswordHash } from "@sebastienrousseau/crypto-testing";const result = createTestPasswordHash("hunter2");console.log(result.hash, result.phc);
Create a test password hash using mock hashing.