Re: unable to login to second application because of password digest issues

2008-12-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Gainty wrote: MessageDigester.digest() returns an array of bytes this will produce a DataType conversion error to/from String without constructing a new String datatype Nobody is trying to to convert to/from a String

unable to login to second application because of password digest issues

2008-12-14 Thread removeps-groups
Hi. I added a second application, but am unable to login to it because of password digest issues. Stepping into RealmBase.java this is what I find: When I log in to the primary application (under ROOT) the password is test and the password saved in the database is the sha1 which is

Re: unable to login to second application because of password digest issues

2008-12-14 Thread removeps-groups
Nevermind, I figured it out. In the second request to login, there was an extra line, so the password was actually test\r\n. --- On Sun, 12/14/08, removeps-gro...@yahoo.com removeps-gro...@yahoo.com wrote: From: removeps-gro...@yahoo.com removeps-gro...@yahoo.com Subject: unable to

RE: unable to login to second application because of password digest issues

2008-12-14 Thread Martin Gainty
MessageDigester.digest() returns an array of bytes this will produce a DataType conversion error to/from String without constructing a new String datatype the bigger problem is digest does 'padding' so the only way to get back the original string is: keep the MessageDigest in a local instance