Re: password encrypted

2009-11-29 Thread Chris Pratt
The PHP appears to be encoded somehow, whereas the Java is a pure number. Looks like you have a bit of research ahead. (*Chris*) On Sun, Nov 29, 2009 at 9:01 PM, Nguyen Xuan Son wrote: > Dear Chris > after I encrypted the password into sha1 code > with the string "123456" i got the > result: >

Re: password encrypted

2009-11-29 Thread Nguyen Xuan Son
Dear Chris after I encrypted the password into sha1 code with the string "123456" i got the result: 124-74-141-9-202-55-98-175-97-229-149-32-148-61-194-100-148-248-148-27 but it looks different from what i've made by using PHP method: ?2S?j?k?-Jo?=????A??J??v!??3?Hm?F?????^???y~???Td

Re: password encrypted

2009-11-29 Thread Chris Pratt
java.security.MessageDigest (*Chris*) On Sun, Nov 29, 2009 at 8:34 PM, Nguyen Xuan Son wrote: > Dear all > i would like to encrypted the password into sha1 code > although I tried to search whether is there any class that I can simply use > as i did in PHP (just simply use the method sha1(stri

Re: password encrypted

2009-11-29 Thread Saeed Iqbal
Are you using Spring Security? Its very simple then. On Mon, Nov 30, 2009 at 9:34 AM, Nguyen Xuan Son wrote: > Dear all > i would like to encrypted the password into sha1 code > although I tried to search whether is there any class that I can simply use > as i did in PHP (just simply use the met

password encrypted

2009-11-29 Thread Nguyen Xuan Son
Dear all i would like to encrypted the password into sha1 code although I tried to search whether is there any class that I can simply use as i did in PHP (just simply use the method sha1(string)) but failed do you have any suggestion? thank you very much -- =