Package io.levysworks.utilities
Class KeyGenerator.KeyHasher
java.lang.Object
io.levysworks.utilities.KeyGenerator.KeyHasher
- Enclosing class:
KeyGenerator
Provides hashing functionality for SSH keys.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerates a SHA-256 fingerprint from the given key string.
-
Constructor Details
-
KeyHasher
public KeyHasher()
-
-
Method Details
-
generateFingerprint
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
-