Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Encryption

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any one suggest me the standard way to encrypt data and store in data.
This is all about some pieace of information that needs to be stored in a encrypted format.

Asymmetric has a problem. The key (serializable object) gives problem when we port application to different JVMS. I need to store user password in database. Thats why i am reluctant, need a simple and best approach.
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The standard Java API for encryption is JCE. Sun has a reference implementation, and there are a few third-party implementations (e.g. Cryptix and Bouncy Castle). For better guidance on an approach, please provide a more detailed description of what you're trying to do.
 
leevisa asinveel
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We are trying to store password and other sensitive information in the database encrypted. How could we do simple and better.
 
Ulf Dittmer
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This page lets you download the AES (i.e., the current encryption standard used by the US government) algorithm in Java. Encrypt anything sensitive before it goes into the DB, decrypt it when it comes out. (Note that this is the extremely short version of how to store something securely, because you asked for something simple. Security is a process, not a product or an algorithm, so if you want things to be really secure, you'll have to learn a good deal more than to apply an encryption algorithm. But it is a good start.)
[ August 29, 2005: Message edited by: Ulf Dittmer ]
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic