Go Back   Forum Care Forums > Development Reference Area > MySQL Discussion

Reply
 
LinkBack Thread Tools Display Modes
Encrypt a field for Replication over public network?
Old
  (#1)
howa
Guest
 
Posts: n/a
Default Encrypt a field for Replication over public network? - 06-04-2007, 07:58 AM

for example, i have table containsa field - p***word, which is a md5
hash

i have this table to replicate across the publich network

i don't want to setup any secure channel for replication since it
might cause additonal overhaded and delay...

are there any workaround for making a particular field more secure?



one way i am thinking is to create a mysql custome function, which
encrypt the hash

it work as following: (php)

$p***word = "p***word"
$p***word = encrypt_me($p***word);


e.g.

update tableA set p***word = md5( decrypt_me($p***word) );

which decrypt_me() and encrypt_me, but at different language, one for
php and one for mysql procedure, when the sql statement repliate
across the network, people don't know the hash....

any comments on this approach or better method?

thanks.

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Re: Encrypt a field for Replication over public network?
Old
  (#2)
Guest
Guest
 
Posts: n/a
Default Re: Encrypt a field for Replication over public network? - 06-04-2007, 07:58 AM

If you are using a good salt-ing mechanism (google for p***word hash
salting if you don't do this already) on the current hash then it
shouldn't really be an issue to transfer them as is. If you want to be
more secure you may be able to use some of the encryption functions
built into mysql: http://dev.mysql.com/doc/refman/5.0/...on_aes-encrypt.

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Encrypt a field for Replication over public network?
Old
  (#3)
howa
Guest
 
Posts: n/a
Default Re: Encrypt a field for Replication over public network? - 06-04-2007, 07:58 AM

On 5 26 , 3 55 , "justin.dema...@gmail.com"
<justin.dema...@gmail.com> wrote:
> If you are using a good salt-ing mechanism (google for p***word hash
> salting if you don't do this already) on the current hash then it
> shouldn't really be an issue to transfer them as is. If you want to be
> more secure you may be able to use some of the encryption functions
> built into mysql:http://dev.mysql.com/doc/refman/5.0/...ions.html#func....


p***word is an example...for example, if i want to excrypt the phone
no. hashing didn't work....

the problem with mysql encryption is that the key will be visible to
the public network during replication, so this is the reason i need to
use my own...

thanks anyway

   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Re: Encrypt a field for Replication over public network?
Old
  (#4)
Nicholas Sherlock
Guest
 
Posts: n/a
Default Re: Encrypt a field for Replication over public network? - 06-04-2007, 07:58 AM

howa wrote:
> for example, i have table containsa field - p***word, which is a md5
> hash
>
> i have this table to replicate across the publich network
>
> i don't want to setup any secure channel for replication since it
> might cause additonal overhaded and delay...


Encryption will also cause some additional overhead and delay. Just pipe
it through an encrypted tunnel like SSH.

Cheers,
Nicholas Sherlock
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Contact Us - Forum Care Forums - Archive - Top