MySQL Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesMySQL Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old May 31st, 2000, 10:28 AM
Boogaloo Boogaloo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 4 Boogaloo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi Folks,

I run a php/mysql site on a virtual server. I store some user info in my mysql dataabse. I'd like to protect my users' details from my host, is this possible?

I'm guessing not, since I don't have root mysql access, and my db username and passwrd are lying about in all my scripts.

Howver, it would be great if there was something I could do.

Any ideas, anyone?

Reply With Quote
  #2  
Old May 31st, 2000, 11:21 AM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 2 m 4 sec
Reputation Power: 44
I don't have the specifics for you, but it should be possible to encrypt the data, and have the decryption key be entered from an HTML form to view or enter data. Bear in mind that to be truly secure, the form should be accessed from https:// (secure server), but at least this will keep those with direct access to your database from browsing the tables.

Reply With Quote
  #3  
Old May 31st, 2000, 11:47 AM
Boogaloo Boogaloo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 4 Boogaloo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi,

Thanks for replying.
I don't think I need an SSL connection, because all the user enters is an email address, however I would hate for anyone to walk off with the email addresses I have of all my subscribers.

Because I want anyone and everyone to be able to add to the database and some cron jobs to deal with the data, I don't think I'll be able to use encryption of the data to provide any real level of security.

I guess I was hoping for some sort of MySQL protection I could set on the tables to deny root access. But I guess root could always change that anyway...

I'm guessing it comes down to trust. And I *do* trust my host. However, I don't think that would be enough to get any independant "Your data is safe on this site" certification.

Bummer. :/

Thanks again for taking a stab at this!

Reply With Quote
  #4  
Old May 31st, 2000, 11:59 AM
rycamor rycamor is offline
Gödelian monster
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jul 1999
Location: Pembroke Pines, Florida, USA
Posts: 2,300 rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level)rycamor User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 3 Days 3 h 2 m 4 sec
Reputation Power: 44
You can disregard part 2 of my answer. People don't need to enter an encryption key to *enter* the data, you would just have the MySQL INSERT encrypt data after the form is submitted. The only drawback is users would not be able to edit their existing data without an encryption key, but you can always just have then enter a new record.

Your viewing and exporting the data is the only thing that would need an encryption key.

Reply With Quote
  #5  
Old May 31st, 2000, 12:58 PM
Boogaloo Boogaloo is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2000
Posts: 4 Boogaloo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0

Unfortunately, I do little with this system by hand. Most of the work is done by cron jobs, the scripts for which will need access to the decryption key. So, for any determined person with access to my server, the keys would be there for him.

Like I say, I don't think this can be done... but I figgered it was worth asking.

And thanks again for your time,

I do appreciate it!

Boogie

Reply With Quote
  #6  
Old June 2nd, 2000, 01:36 AM
fcatz fcatz is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 1999
Posts: 12 fcatz User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Well if u *really* want to encrypt your data with relative security i suppose you can lookup the tea encryption algo. (really fast and small, couple of lines of code) and just write a small c program that implements it, then hard code the key in the encrypt. and decrypt. program, of course root would be able to just use an hex editor to look up the passphrase but its a bit of an overkill i think.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesMySQL Help > Keeping my host out of my database


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway