T
timasmith
Hi,
I used this function to convert the password to a hashe value
public static byte[] getKeyedDigest(byte[] buffer, byte[] key)
throws NoSuchAlgorithmException {
MessageDigest md5 = MessageDigest.getInstance("MD5");
md5.update(buffer);
return md5.digest(key);
}
But the output was completely invalid to use for SQL to save in a field
?ª4úø...¦ÁœIÃÑäjÈ
Without doing a binary save - how can I easily convert the output to
regular ascii?
thanks
Tim
I used this function to convert the password to a hashe value
public static byte[] getKeyedDigest(byte[] buffer, byte[] key)
throws NoSuchAlgorithmException {
MessageDigest md5 = MessageDigest.getInstance("MD5");
md5.update(buffer);
return md5.digest(key);
}
But the output was completely invalid to use for SQL to save in a field
?ª4úø...¦ÁœIÃÑäjÈ
Without doing a binary save - how can I easily convert the output to
regular ascii?
thanks
Tim