Questions about CAS password encoder

Li Wei Nan liweinan at chinaedu.net
Tue Sep 2 23:44:25 EDT 2008


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





-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tp.its.yale.edu/pipermail/cas/attachments/20080903/757c5864/attachment.html 


More information about the cas mailing list