It seems you'r not encrypting the password but hashing it
explanation :
- pasword *encryption* can be reversed, using some secret key
- pasword *hashing* produces a unique String, that DOES NOT CONTAIN infos about the password (cannot be reversed). The hash algorithm (MD5, SHA...) is designed so that it is VERY difficult (but not impossible) to build another String that will produce the same hash.

If you're using hashing, you cannot get the password back. You may provide a 'reset password' link to user having lost they're password, that will create a new (random) password and send it by mail.

Nico.


senthil Kumar a écrit :

Hello all.,



In my database password already stored in encrypted format.

Once user forget the password i need to send back him but its seeing by 
encryption format only.

Bofere send password to user, i need to decrypt in java.

I am encrypt using following code


cryptoInterface=CryptoFactory.getCryptoHandler();
password = cryptoInterface.getHash(password);


But i cant decrypt back. Any one can send the code or help me.

Thanks in advance.
Senthil S



This e-mail and any files transmitted with it are for the sole use of the 
intended recipient(s) and may contain confidential and privileged information. 
If you are not the intended recipient or received it in error, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
Please do not copy it for any purpose or disclose its contents.

Copyright Tarang Software Technologies Pvt. Ltd. 2004. All rights Reserved


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to