There is no new password encoder called Md5PasswordEncoder. The only one is
the DefaultPasswordEncoder which takes the algorithm as the constructor
argument.
-Scott
On 9/2/08, Li Wei Nan <[EMAIL PROTECTED]> wrote:
>
> Hi All,
> I've used the CAS password encoder in our project. Before we
> use org.jasig.cas.authentication.handler.DefaultPasswordEncoder with
> following config:
>
> <bean class="org.jasig.cas.authentication.handler.DefaultPasswordEncoder">
> <constructor-arg index="0"> <value>MD5</value> </constructor-arg> </bean>
>
> That is working correctly and well. And now we begin to use the new one:
>
> org.jasig.cas.authentication.handler.Md5PasswordEncoder
>
> However, the password generated by Md5PasswordEncoder is totally wrong.
> For example, the md5 hash for 'red' should be: MD5 ("red") =
> bda9643ac6601722a28f238714274da4
> But in our project, we get: -42569bc5399fe8dd5d70dc78ebd8b25c
>
> Can anyone gives any suggestion?
>
> - Li Wei Nan
>
>
>
>
>
>
> _______________________________________________
> Yale CAS mailing list
> [email protected]
> http://tp.its.yale.edu/mailman/listinfo/cas
>
>
--
-Scott Battaglia
PGP Public Key Id: 0x383733AA
LinkedIn: http://www.linkedin.com/in/scottbattaglia
_______________________________________________
Yale CAS mailing list
[email protected]
http://tp.its.yale.edu/mailman/listinfo/cas