Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Very urgent question.Need immidiate help.  RSS feed

 
Samira Mastali
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!