Crypto Testing
    Preparing search index...

    Function createTestPasswordHash

    • Create a test password hash using mock hashing.

      Parameters

      • Optionalpassword: string

        Password to hash. Defaults to "test-password-123".

      Returns MockHashPasswordResult

      import { createTestPasswordHash } from "@sebastienrousseau/crypto-testing";

      const result = createTestPasswordHash("hunter2");
      console.log(result.hash, result.phc);