CSecurity
asked on
Java Hex to String
Hello
I want to convert a Hex String to String.
Example input:
41424344
Example output:
ABCD
Thanks from now!
I want to convert a Hex String to String.
Example input:
41424344
Example output:
ABCD
Thanks from now!
I don't think you can do that! there should be some delemeter between each char representation...
ASKER
Hex maximum length is 2
ASKER
and for hex with length 1 there will be zero before it
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
String s = new String(new BigInteger("41424344").toByteArray()));
String s = new String(new BigInteger("41424344", 16).toByteArray()));