Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Very urgent question.Need immidiate help.

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic