Java Encryption and Decryption
I am new java developer. Now i am doing one struts application.
In my application, at the User registration time, i need to Encrypt the password field and then i like to store into the database.
After that the same user will be logging, at the moment the database password will decrypt and it will be compare to the User entering password.
If both password's are equal, then only the User will allow the logging.
can anybody know or have any sample code for Encrypt and Decrypt.
If yes, kindly post me, my mail id is firstname.lastname@example.org.
I am expecting anyone's reply.