Package org.drasyl.crypto
Class Hashing
java.lang.Object
org.drasyl.crypto.Hashing
Util class that provides hashing functions for drasyl.
-
Method Summary
-
Method Details
-
sha256
Generates a SHA-256 hash of the given input.- Parameters:
input
- the input to hash- Returns:
- SHA-256 hash of the input
- Throws:
IllegalArgumentException
- if SHA-256 hash could not be created
-
sha256
public static byte[] sha256(byte[]... input) Generates a SHA-256 hash of the given input.- Parameters:
input
- the input to hash- Returns:
- SHA-256 hash of the input
- Throws:
IllegalArgumentException
- if SHA-256 hash could not be created
-