Interface ApiKeyHasher

All Known Implementing Classes:
SHA256ApiKeyHasher

public interface ApiKeyHasher
Defines the contract for securely hashing API keys prior to database storage or verification.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    hash(String plaintextApiKey)
    Hashes the plaintext API key.
  • Method Details

    • hash

      String hash(String plaintextApiKey)
      Hashes the plaintext API key.
      Parameters:
      plaintextApiKey - the raw API key
      Returns:
      the hashed key