I am in need of one algorithm for encryption and decyption of password.

Hi,

I am in need of one algorithm for encryption and decyption of username and password.

Can youprovide code of that algorithm either in C or C++ or Java.

Here we will provide one input file, the algorithm hav encrypt that file and places in other file.

And later we hav to decrypt the file for original text

Reply as early as possilbe

Regards,

Nagur S.

[402 byte] By [NMVa] at [2007-11-27 11:32:09]
# 1

YOu can use Java Cryptography Extension.. here there will be lots of algorithms... If you want a example try DES + java + crypto in google

New_Kida at 2007-7-29 16:43:53 > top of Java-index,Java Essentials,Java Programming...
# 2

Not that this really answers your question, but password encryption is usually done with some sort of message digest (usually a hash function).

So the hash of the password is stored, then when you need to verify an input password you would hash that and compare that to the stored hash.

Usernames are generally not encrypted.

Edit:

Decrypting stored passwords is a potential security risk. Or rather storing passwords in a decryptable manner is a security risk.

Message was edited by:

dwg

dwga at 2007-7-29 16:43:53 > top of Java-index,Java Essentials,Java Programming...