Go Back   Dedicated Server Hosting | VPS Hosting | Virtual Private Servers Forum > Support > MySQL Issues.
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 03-07-09, 10:19
BOD Member
 
Join Date: Jan 2009
Posts: 73
Default Encrypted databases?

Hi, I was just wondering if its possible to encrypt databases? I'm sure I could put a hack in to encrypt the data going in and decrypt it coming out, but is it implemented in mysql ?
Reply With Quote
  #2 (permalink)  
Old 03-07-09, 14:43
BOD Member
 
Join Date: Mar 2009
Posts: 24
Default

MySQL :: MySQL 5.1 Reference Manual :: 11.11.2 Encryption and Compression Functions

It's implemented in mysql - you need to use the AES_DECRYPT() and AES_ENCRYPT() - or DES_DECRYPT() and DES_DECRYPT() functions in your query strings - it's only 128bit rijandel, but its better than nothing - If i were you I would look at something stronger, or make your own function to double or triple encrypt it - that way it uses a lot more cpu, but it is far more safe.
Reply With Quote
  #3 (permalink)  
Old 03-07-09, 14:50
BOD Member
 
Join Date: Jan 2009
Posts: 73
Default

, I'll have to have a shot at making all my databases encrypted now, should be a fun project for a Sunday afternoon - It's going to be pretty easy to change though - I have one query function that gets re-used, so I can just add the decrypt to the read and the encrypt to the write (hopefully!!).
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 21:39.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2008, BODHost.com. All rights reserved.