Class EncDec
- java.lang.Object
-
- com.h2tcoin.takamakachain.utils.vrf.EncDec
-
public class EncDec extends Object
- Author:
- giovanni.antino@h2tcoin.com
-
-
Constructor Summary
Constructors Constructor Description EncDec()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static byte[]
b64toByte(String b64Message)
static byte[]
b64toByteUrl(String b64Message)
static String
byteToB64(byte[] byteMessage)
static String
byteToB64Url(byte[] byteMessage)
static String
byteToInternalString(byte[] msg)
this is NOT a wrapper for JAVA string, is a wrapper for BC Stringsstatic byte[]
decodeHEXKeySafe(String hexMsg)
static byte[]
decodeKeySafe(String hexMsg)
static String
encodeHEXKeySafe(byte[] byteSignature)
static String
encodeKeySafe(byte[] byteSignature)
static byte[]
internalStringToByte(String msg)
this is NOT a wrapper for JAVA string, is a wrapper for BC Strings
-
-
-
Method Detail
-
encodeKeySafe
public static String encodeKeySafe(byte[] byteSignature) throws IOException
- Throws:
IOException
-
decodeKeySafe
public static byte[] decodeKeySafe(String hexMsg) throws IOException
- Throws:
IOException
-
encodeHEXKeySafe
public static String encodeHEXKeySafe(byte[] byteSignature) throws IOException
- Throws:
IOException
-
decodeHEXKeySafe
public static byte[] decodeHEXKeySafe(String hexMsg) throws IOException
- Throws:
IOException
-
byteToB64Url
public static String byteToB64Url(byte[] byteMessage) throws IOException
- Throws:
IOException
-
b64toByteUrl
public static byte[] b64toByteUrl(String b64Message) throws IOException
- Throws:
IOException
-
byteToB64
public static String byteToB64(byte[] byteMessage) throws IOException
- Throws:
IOException
-
b64toByte
public static byte[] b64toByte(String b64Message) throws IOException
- Throws:
IOException
-
internalStringToByte
public static byte[] internalStringToByte(String msg) throws IOException
this is NOT a wrapper for JAVA string, is a wrapper for BC Strings- Parameters:
msg
-- Returns:
- Throws:
IOException
-
byteToInternalString
public static String byteToInternalString(byte[] msg) throws IOException
this is NOT a wrapper for JAVA string, is a wrapper for BC Strings- Parameters:
msg
-- Returns:
- Throws:
IOException
-
-