This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Encrypted Tables/Database

 
Tad Dicks
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
probably you would encrypt your data, but i never heard of encrypted relationships?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic