Package de.brifle.sdk.helper
Class Crypto
java.lang.Object
de.brifle.sdk.helper.Crypto
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbytesToHex(byte[] bytes) static byte[]hexToBytes(String hex) static Stringstatic byte[]
-
Constructor Details
-
Crypto
public Crypto()
-
-
Method Details
-
randomKey
- Throws:
NoSuchAlgorithmException
-
bytesToHex
-
hexToBytes
-
hmac
public static String hmac(String data, String key) throws NoSuchAlgorithmException, InvalidKeyException
-