• 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

Encrypted Tables/Database

 
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I need to create a database where all the tables are encrypted (I am planning on using HSQLDB) and there are a couple ways I can see doing it but they both have issues. I could encrypt the entire table (in a text table) and then decrypt the entire thing into a memory table. Or I could just encrypt each row of data and decrypt them as I pull them out. The first option doesn't seem feasible to me with a table that consists of several hundred thousand records (am I wrong?) and in a way seems to defeat the purpose of encrypting the db if I'm going to decrypt the entire thing and have it in memory. The second option seems nice at first glance but I don't see how it would be possible to query against (except in the case of say: field1 = encrypt("value") but if you wanted to say something like: field1 > 50). It wouldn't work. Is there a standard way of dealing with this? Are there any tools specifically for doing this? The only way I can conceive of doing this is have an extensive list of non-encrypted indexs.

I've had requirements for passwords to be encrypted but never an entire database.

-Tad
 
Tad Dicks
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does anyone know of any foss (preferrably java based) databases that support encryption on an entire column? And will still let you run queries against the data?

-Tad
 
Ranch Hand
Posts: 1170
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
probably you would encrypt your data, but i never heard of encrypted relationships?
 
reply
    Bookmark Topic Watch Topic
  • New Topic