• 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
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

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
 
roses are red, violets are blue. Some poems rhyme and some are a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic