• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Encryption of password in properties file

 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am new to encryption and just wanted to know If anybody can tell how can i achieve my objective.

I want to keep encrypted database password in the properties file and when i load the property i want to decrypt the same and connect to the DB.

Can anybody help me with the inputs on this as i tried using lot of algorithm but couldn;t succeed. What i want is a step by step process I mean what are the libraries required and how to encrypt and decrypt and any other details helpfull on this.

I am in short of time if anybody have any inputs please provide asap.

Cheers,
Rahul
 
Ranch Hand
Posts: 403
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Java Almanac is a fairly good resource for code samples.
Try this one:
http://www.javaalmanac.com/egs/javax.crypto/PassKey.html
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic