Class KeyGenerator.KeyHasher

java.lang.Object
io.levysworks.utilities.KeyGenerator.KeyHasher
Enclosing class:
KeyGenerator

@ApplicationScoped public static class KeyGenerator.KeyHasher extends Object
Provides hashing functionality for SSH keys.
  • Constructor Details

    • KeyHasher

      public KeyHasher()
  • Method Details

    • generateFingerprint

      public String generateFingerprint(String key) throws NoSuchAlgorithmException
      Generates a SHA-256 fingerprint from the given key string.
      Parameters:
      key - the input key string
      Returns:
      hexadecimal SHA-256 hash fingerprint
      Throws:
      NoSuchAlgorithmException - if SHA-256 algorithm is not available