Basic Authentication with Tomcat and /etc/passwd file

I 'm developing a web application with struts and tomcat. I have to autheticate my users's passwords with /etc/passwd file. I want to use realm(from tomcat) but I don't no which algorithm is used to codify passwords in /etc/passwd file. Please, help me. Thanks!
[271 byte] By [zoraidaa] at [2007-10-3 4:32:54]
# 1
It all depends on which version of UNIX you're working with. It ranges from using the DES algorithm to MD5 and Blowfish. You will need to research your OS and determine which one they support.
arshad.noora at 2007-7-14 22:36:27 > top of Java-index,Security,Cryptography...