Bluehost.com Web Hosting $6.95

Encrypt a field for Replication over public network?

This is a discussion on Encrypt a field for Replication over public network? within the MySQL Database forums, part of the Database Forums category; for example, i have table containsa field - password, which is a md5 hash i have this table to replicate across ...


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-25-2007
howa
 
Posts: n/a
Default Encrypt a field for Replication over public network?

for example, i have table containsa field - password, 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)

$password = "password"
$password = encrypt_me($password);


e.g.

update tableA set password = md5( decrypt_me($password) );

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.

Reply With Quote
  #2 (permalink)  
Old 05-25-2007
justin.demaris@gmail.com
 
Posts: n/a
Default Re: Encrypt a field for Replication over public network?

If you are using a good salt-ing mechanism (google for password 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.

Reply With Quote
  #3 (permalink)  
Old 05-26-2007
howa
 
Posts: n/a
Default Re: Encrypt a field for Replication over public network?

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 password 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....


password 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

Reply With Quote
  #4 (permalink)  
Old 05-27-2007
Nicholas Sherlock
 
Posts: n/a
Default Re: Encrypt a field for Replication over public network?

howa wrote:
> for example, i have table containsa field - password, 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
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 06:53 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0