>From the source, the encrypt password method transforms the password
using UTF-8 as the default character encoding before translating it using
SHA and finally encoding it with base64 as the output.
Try addding these in your own crypt() method and see if it works.
My guess is your encoding platform could be different (usually
if you're running on windows).
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Ethan Adams
Sent: Monday, February 12, 2001 6:59 PM
To: Turbine
Subject: Re: Can't get md5 working under Turbine
I think I know the problem. Looks like your doing some additional encoded
above and beyond md5. Ex.
When I encrypt my password using straight MD5 I get:
b414965511c3fe6cd6e2adbcf0a282a3
When I encrypt it using TurbineSecurity.encryptPassword I get:
tBSWVRHD/mzW4q288KKCorg.
Is what I am showing true...Or am I doing it wrong?
>>> Jon Stevens <[EMAIL PROTECTED]> 02/12/01 08:41 PM >>>
on 2/12/01 4:04 PM, "Ethan Adams" <[EMAIL PROTECTED]> wrote:
> Yet when I try to login...I can't.
>
> Any thoughts???
Put some println's in the code and see what is going wrong. Then report back
to us. I'm using SHA and it works fine in Scarab.
services.TurbineSecurityService.secure.passwords.algorithm=SHA
services.TurbineSecurityService.secure.passwords=true
-jon
--
If you come from a Perl or PHP background, JSP is a way to take
your pain to new levels. --Anonymous
<http://jakarta.apache.org/velocity/> && <http://java.apache.org/turbine/>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]