Hi all,
I have to write a java class, that encrypts user passwords for linux systems.
Encrypted passwords look like
Quote:
Cleartext: example123
Encrypted: $1$WSkRNdS1$wEjaljTpo9RJeAUmTOmyq.
|
(I got this passwd from a shadow file)
After trying and googling, I don't know really
a) what algorithm is used to produce the encrypted password (it is not CRYPTed) and
b) how to encrypt with java.
The JCE seems to support two-way encryptions and some digests only. I tried the digests like md5, but nothing produced something identical (or even similar) to the given encrypted passwords.
Can anyone point me the correct direction?
Thanks a lot,
Clemente