PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > mysql.general > How to encrypt Text and still be able to use full text search?3rd Attempt ++
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
How to encrypt Text and still be able to use full text search?3rd Attempt ++

Réponse
 
LinkBack Outils de la discussion
Vieux 26/10/2007, 15h17   #1
mos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut How to encrypt Text and still be able to use full text search?3rd Attempt ++

I posted this message twice in the past 3 days, and it never gets on the
mailing list. Why?
Here it is again:

I have a Text field that contains paragraph text and for security reasons I
need to have it encrypted. If I do this, how can I still implement full
text search on it?
Also, I have a lot of Float columns that need to be protected but the user
has to use comparison operators like ">" and "<" on them. Any recommendations?

TIA
Mike
  Réponse avec citation
Vieux 26/10/2007, 15h36   #2
Ian
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to encrypt Text and still be able to use full text search? 3rd Attempt ++

On 26 Oct 2007 at 9:17, mos wrote:

> I posted this message twice in the past 3 days, and it never gets on the
> mailing list. Why?
> Here it is again:
>
> I have a Text field that contains paragraph text and for security reasons I
> need to have it encrypted. If I do this, how can I still implement full
> text search on it?
> Also, I have a lot of Float columns that need to be protected but the user
> has to use comparison operators like ">" and "<" on them. Any recommendations?


Hi,

This is quite a difficult one, and as usual in the field of security depends on how valuable
the data is and how difficult you want it to be for an attacker to obtain it.

If you let us know what type of data this is and how well it has to be protected, maybe we
can more. "security reasons" is a bit vague, but I can understand that you don't want
to give too much away.

I can say one thing though, in order for the data to be indexed by MySQL , it has to be in
an unencrypted form somewhere in the database. There is no way I know to get around
this, but I hope someone can correct me

Regards

Ian
--

  Réponse avec citation
Vieux 26/10/2007, 18h18   #3
mos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to encrypt Text and still be able to use full textsearch? 3rd Attempt ++

Ian,

At 09:36 AM 10/26/2007, you wrote:
>On 26 Oct 2007 at 9:17, mos wrote:
>
> > I posted this message twice in the past 3 days, and it never gets on the
> > mailing list. Why?
> > Here it is again:
> >
> > I have a Text field that contains paragraph text and for security

> reasons I
> > need to have it encrypted. If I do this, how can I still implement full
> > text search on it?
> > Also, I have a lot of Float columns that need to be protected but the user
> > has to use comparison operators like ">" and "<" on them. Any

> recommendations?
>
>Hi,
>
>This is quite a difficult one, and as usual in the field of security
>depends on how valuable
>the data is and how difficult you want it to be for an attacker to obtain it.
>
>If you let us know what type of data this is and how well it has to be
>protected, maybe we
>can more. "security reasons" is a bit vague, but I can understand
>that you don't want
>to give too much away.


The data is quite valuable because there is a lot of competition in this
particular marketplace and my competitors would like to get their hands on
it. I've spent 5 years writing the software and generating the data. Let's
say for the sake of argument the data is worth $1 million. How do I stop my
competitor from bribing some flunky at the ISP into turning over the backup
of my data or just e-mailing the MySQL password file to him? Also I don't
want anyone at the ISP viewing the data or changing it because I'd be
liable for any data errors.

>I can say one thing though, in order for the data to be indexed by MySQL ,
>it has to be in
>an unencrypted form somewhere in the database. There is no way I know to
>get around
>this, but I hope someone can correct me


I hope so too.
There are quite a few databases out there that have transparent encryption
(Blowfish, AES etc.) and I'm wondering why MySQL haven't implemented it,
especially now with the new laws that make the company liable for security
breaches on the web. On the other databases I've used, I haven't noticed
any speed decrease if the table is encrypted.

Mike
  Réponse avec citation
Vieux 26/10/2007, 18h28   #4
mysql@subtropolix.org
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to encrypt Text and still be able to use full text search?3rd Attempt ++

mos wrote:
>
> The data is quite valuable because there is a lot of competition in this
> particular marketplace and my competitors would like to get their hands
> on it. I've spent 5 years writing the software and generating the data.
> Let's say for the sake of argument the data is worth $1 million. How do
> I stop my competitor from bribing some flunky at the ISP into turning
> over the backup of my data or just e-mailing the MySQL password file to
> him? Also I don't want anyone at the ISP viewing the data or changing it
> because I'd be liable for any data errors.


Host the machines in-house. I think that could be done for less than a
million bucks for a smallish setup.

Of course, I've only ever been a bystander with that sort of project, so
the figures may be a lot higher than I'm guessing. For instance, you'd
want a beefy connection installed, of course. And then there's the
salary for someone to administer to everything.

brian

  Réponse avec citation
Vieux 26/10/2007, 18h31   #5
Baron Schwartz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to encrypt Text and still be able to use full text search?3rd Attempt ++

mysql@subtropolix.org wrote:
> mos wrote:
>>
>> The data is quite valuable because there is a lot of competition in
>> this particular marketplace and my competitors would like to get their
>> hands on it. I've spent 5 years writing the software and generating
>> the data. Let's say for the sake of argument the data is worth $1
>> million. How do I stop my competitor from bribing some flunky at the
>> ISP into turning over the backup of my data or just e-mailing the
>> MySQL password file to him? Also I don't want anyone at the ISP
>> viewing the data or changing it because I'd be liable for any data
>> errors.

>
> Host the machines in-house. I think that could be done for less than a
> million bucks for a smallish setup.
>
> Of course, I've only ever been a bystander with that sort of project, so
> the figures may be a lot higher than I'm guessing. For instance, you'd
> want a beefy connection installed, of course. And then there's the
> salary for someone to administer to everything.


I agree. If you're using shared hosting, forget about encryption.
Physical access to the machines ALWAYS trumps every other kind of
security, so you can't do what you're trying to do (secure data in an
insecure environment). Rent a T1 line for $500/mo and charge customers
what the data is worth.

Baron
  Réponse avec citation
Vieux 26/10/2007, 19h47   #6
Rob Wultsch
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to encrypt Text and still be able to use full text search? 3rd Attempt ++

On 10/26/07, Baron Schwartz <baron@xaprb.com> wrote:
>
> mysql@subtropolix.org wrote:
> > mos wrote:
> >>
> >> The data is quite valuable because there is a lot of competition in
> >> this particular marketplace and my competitors would like to get their
> >> hands on it. I've spent 5 years writing the software and generating
> >> the data. Let's say for the sake of argument the data is worth $1
> >> million. How do I stop my competitor from bribing some flunky at the
> >> ISP into turning over the backup of my data or just e-mailing the
> >> MySQL password file to him? Also I don't want anyone at the ISP
> >> viewing the data or changing it because I'd be liable for any data
> >> errors.

> >
> > Host the machines in-house. I think that could be done for less than a
> > million bucks for a smallish setup.
> >
> > Of course, I've only ever been a bystander with that sort of project, so
> > the figures may be a lot higher than I'm guessing. For instance, you'd
> > want a beefy connection installed, of course. And then there's the
> > salary for someone to administer to everything.

>
> I agree. If you're using shared hosting, forget about encryption.
> Physical access to the machines ALWAYS trumps every other kind of
> security, so you can't do what you're trying to do (secure data in an
> insecure environment). Rent a T1 line for $500/mo and charge customers
> what the data is worth.
>
> Baron



I also agree, however for the sake of argument could we assume that the
order of the wording in the entry probably imparts a significant amount of
it's value? If that is the case, I would think creating a second column of
unencrypted text (with a full text index) which would be nothing more than
copy of the the text with the words in a random order might provide a bit of
the protection that the user is looking for.

  Réponse avec citation
Vieux 26/10/2007, 20h05   #7
mos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to encrypt Text and still be able to use full textsearch? 3rd Attempt ++

At 12:31 PM 10/26/2007, you wrote:
>mysql@subtropolix.org wrote:
>>mos wrote:
>>>
>>>The data is quite valuable because there is a lot of competition in this
>>>particular marketplace and my competitors would like to get their hands
>>>on it. I've spent 5 years writing the software and generating the data.
>>>Let's say for the sake of argument the data is worth $1 million. How do
>>>I stop my competitor from bribing some flunky at the ISP into turning
>>>over the backup of my data or just e-mailing the MySQL password file to
>>>him? Also I don't want anyone at the ISP viewing the data or changing it
>>>because I'd be liable for any data errors.

>>Host the machines in-house. I think that could be done for less than a
>>million bucks for a smallish setup.
>>Of course, I've only ever been a bystander with that sort of project, so
>>the figures may be a lot higher than I'm guessing. For instance, you'd
>>want a beefy connection installed, of course. And then there's the salary
>>for someone to administer to everything.

>
>I agree. If you're using shared hosting, forget about encryption.
>Physical access to the machines ALWAYS trumps every other kind of
>security, so you can't do what you're trying to do (secure data in an
>insecure environment).


Out of curiosity, why can't you use an ISP if the table is encrypted on a
dedicated server (using a database other than MySQL, say SQLite)? The pw
would be entered via VPN and is not stored in memory or in any file. The
data on disk is always encrypted and the selected rows are only decrypted
in memory on the fly. The ISP administrator never sees the pw or the
unencrypted data.

> Rent a T1 line for $500/mo and charge customers what the data is worth.


Yes, that will solve the problem. I'd have to incur more up front costs but
security would be under my control.

Mike
  Réponse avec citation
Vieux 26/10/2007, 21h36   #8
mos
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: How to encrypt Text and still be able to use full textsearch? 3rd Attempt ++

At 01:47 PM 10/26/2007, you wrote:
>On 10/26/07, Baron Schwartz <baron@xaprb.com> wrote:
> >
> > mysql@subtropolix.org wrote:
> > > mos wrote:
> > >>
> > >> The data is quite valuable because there is a lot of competition in
> > >> this particular marketplace and my competitors would like to get their
> > >> hands on it. I've spent 5 years writing the software and generating
> > >> the data. Let's say for the sake of argument the data is worth $1
> > >> million. How do I stop my competitor from bribing some flunky at the
> > >> ISP into turning over the backup of my data or just e-mailing the
> > >> MySQL password file to him? Also I don't want anyone at the ISP
> > >> viewing the data or changing it because I'd be liable for any data
> > >> errors.
> > >
> > > Host the machines in-house. I think that could be done for less than a
> > > million bucks for a smallish setup.
> > >
> > > Of course, I've only ever been a bystander with that sort of project, so
> > > the figures may be a lot higher than I'm guessing. For instance, you'd
> > > want a beefy connection installed, of course. And then there's the
> > > salary for someone to administer to everything.

> >
> > I agree. If you're using shared hosting, forget about encryption.
> > Physical access to the machines ALWAYS trumps every other kind of
> > security, so you can't do what you're trying to do (secure data in an
> > insecure environment). Rent a T1 line for $500/mo and charge customers
> > what the data is worth.
> >
> > Baron

>
>
>I also agree, however for the sake of argument could we assume that the
>order of the wording in the entry probably imparts a significant amount of
>it's value? If that is the case, I would think creating a second column of
>unencrypted text (with a full text index) which would be nothing more than
>copy of the the text with the words in a random order might provide a bit of
>the protection that the user is looking for.


Good point. I hadn't thought of that.

I also need to protect a couple dozen Float fields and thought I could
obscure them a bit by adding an offset to them based on an encrypted id
stored with each row. It is not going to be as good as encryption but will
to obfuscate the data.

Mike
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 16h23.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,18957 seconds with 16 queries