Package com.ubs.backend.classes
Class SHA256
java.lang.Object
com.ubs.backend.classes.SHA256
Class to get the SHA256 Hash of a String.
- Since:
- 17.07.2021
- Author:
- Marc
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetHexString(byte[] hash)Function to the Hex String of a numberstatic StringgetHexStringInstant(String string)Function to get the SHA256 Hash of a string.static byte[]Function to get the bytes of a String
-
Constructor Details
-
SHA256
public SHA256()
-
-
Method Details
-
getSHA
Function to get the bytes of a String- Parameters:
string- the String which will be used.- Returns:
- the bytes of the String
- Since:
- 17.07.2021
-
getHexString
Function to the Hex String of a number- Parameters:
hash- the Hash being used- Returns:
- the Hex String
- Since:
- 17.07.2021
-
getHexStringInstant
Function to get the SHA256 Hash of a string.- Parameters:
string- the String being hashed.- Returns:
- the SHA256 Hash of the String
- Since:
- 17.07.2021
-