Jump to content

What function do i use for data encyrption and decryption ?


jd2007

Recommended Posts

There isn't one unless you write your own algorthims,  This is mainly for security reasons as developing a public 2-way encrypt would be pointless.

There is an extension/module to help with encrypting AND decrypting data. Look into:

 

http://us2.php.net/manual/en/ref.mcrypt.php

 

 

Tutorial:

 

http://www.phpfreaks.com/tutorials/128/0.php

There is an extension/module to help with encrypting AND decrypting data. Look into:

The quality of this is relatively low, since any one who could "hack" into your mysql db and read the table data could easily decrypt it with mcrypt. The idea of 2-way encryption just doesn't make sense to me, you encrypt to protect something, not to do magic tricks with it.

The quality of this is relatively low, since any one who could "hack" into your mysql db and read the table data could easily decrypt it with mcrypt. The idea of 2-way encryption just doesn't make sense to me, you encrypt to protect something, not to do magic tricks with it.

I disagree. Someone who could hack to get to your database does not necessarily mean that they have the ability to decrypt the data.

 

They would have to know which one out of the many ciphers (which some use 256 bit encryption) you used, then cipher mode you used, the initialization vector you used, and your private key/password you used. Granted that these might be available if your not (zend) encoding your scripts or not hiding your key properly.

 

There are many reasons why you have to have 2-way encryption (i.e. credit card billing).

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.