Re: Password encryption in Java based on the Data
Encryption Standard algorithm
I encrypt passwords using "crypt" function in Perl as
shown below and save it in the "user" table:
// crypt("<password in plain text>", "<user-id>")
$pwd = crypt("test1", "sagara");
The out put $pwd is: saTBKtwSCLJ0A
I need to authenticate users in Java programs against
the same "user" table. Could somebody please explain
to me how to do this in Java programming language? I
need to generate the same "saTBKtwSCLJ0A" encrypted
password once the plain text password "test1" and the
user id "sagara" are given.
Appreciate if you could show the relevant parts of a
working Java program.
I use JDK 1.4.1 on Red Hat Linux 7.2 on Intel based PC
server.
Many thanks in advance.
Regards
Sagara
__________________________________________________
Yahoo! - We Remember
9-11: A tribute to the more than 3,000 lives lost
http://dir.remember.yahoo.com/tribute
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help