Hey guys,
Thanks for all the replies.
I am sending the hash in a URL to a website to verify the information
being sent. Every time I sent it with the above hash, it
didn't work. When I sent it with a hash from another source (like a
website that creates hashes), it worked.
Niko20, sorry I
The problem is Integer.toHexString(0xFF messageDigest...
It doeasn't print leading 0s
try this one
try {
MessageDigest digest = java.security.MessageDigest.getInstance
(MD5);
digest.update(password.getBytes());
byte passDigest[] = digest.digest();
// Create Hex
Just a a side note, why do you care if it doesn't match? Unless you
are comparing MD5's to ones generated elsewhere, you are still getting
a unique hash. And as long as you compare to only hashes generated by
android it will always match
-niko
On Dec 7, 1:14 pm, Justin Anderson
Try this:
public String md5(String s) {
try {
// Create MD5 Hash
MessageDigest digest = java.security.MessageDigest.getInstance
(MD5);
digest.update(s.getBytes());
byte messageDigest[] = digest.digest();
// Create Hex String
StringBuffer
And what the hell is your MD5_Hash function look like anyway?
That's not a built in android API.
Crimony, give some info next time! Obviously your MD5 function is
messed up.
-niko
On Dec 7, 2:33 pm, niko20 nikolatesl...@yahoo.com wrote:
Try this:
public String md5(String s) {
try {
Dan Niko20, little uptight this morning? It's amazing what happens when
you're actually nice in responses instead of so harsh. If you're going to
help out, why send a 3rd reply with such an attitude.
On Mon, Dec 7, 2009 at 12:36 PM, niko20 nikolatesl...@yahoo.com wrote:
And what the hell is
6 matches
Mail list logo