R
Richard
Hello,
I get a char[] from a JPasswordField and I would like to use
MessageDigest.digest(byte[]) to get a md5 digest of the password. What's
the best way to transform a char[] into a byte[] in Java (and to
transform a byte[] into a char[])?
I don't want to use a String to do that.
Thanks in advance for your answers.
Richard
I get a char[] from a JPasswordField and I would like to use
MessageDigest.digest(byte[]) to get a md5 digest of the password. What's
the best way to transform a char[] into a byte[] in Java (and to
transform a byte[] into a char[])?
I don't want to use a String to do that.
Thanks in advance for your answers.
Richard