String senc = "String to encode";
java.security.MessageDigest digest =
java.security.MessageDigest.getInstance("MD5");
What to do next to get the String with MD5?
EDIT: Is this possible at all? (using built in md5-support)
I can't found working examples:(
Please, help.
EDIT 2:
byte msgDigest[] = algorithm.digest();
required: byte[], int, int.
found: no arguments.
Ok, I wrote:
byte msgDigest[] = algorithm.digest(sencBytes, 0, sencBytes.length);
and i got an error again:
required: byte[], int, int.
found: int
I don't know why found
int
if first argument is
byte[]
:(
Project properties:
Device Configuration: CLDC-1.1
Device Profile: MIDP-2.1