Message Digest of char array
Posted on 2007-03-30
I'm trying to create a message digest for a password, which is stored as a char array.
Currently, I'm doing something like this:
char  password ;
byte  md = md5.digest();
Which works. However, converting it to a string [in order to get a byte array for it] defeats the entire point of storing the password as a char array in the first place..
So is there a direct way of achieving this, without incorporating java.lang.String?