Using SHA-256 I created a 32 length byte array that I have no problem converting to a String using
StringBuilder sb = new StringBuilder();
for(int i = 0; i < byteArray.length; i++){
sb.append(String.format("%02X", byteArray[i]));
}
String str = sb.toString().toLowerCase();
However, I am having trouble converting the resulting 64 character String back into a 32 byte array. How should I proceed?