Very urgent question.Need immidiate help.

Samira Mastali

Ranch Hand

Posts: 74

posted 15 years ago

Hi Folks, I am writing a java program which is using Oracle as the database.I have a change password section inside the GUI whihc asks for the old password and should compare it with the existing password insdie the table and compare them.As I know the password inside the table is enrypted.So, how my program can compare the password which is getting from user with that one insdie the table. I appreciate any help on this. Regards, Samira

Syam Veerakumar

Ranch Hand

Posts: 49

posted 15 years ago

I am not sure what do you mean but if you want to compare the password which is in the database with the one(old password) given by the user, do the following steps, 1.Get the password from the database as a String and store it in a variable. 2.Compare that variable with the one entered by user. 3.If both are same update the column with the new password. 4.If not send an error message.