Go Back   Cloud Computing > Support > PHP Forum
 

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 02-04-11, 08:58
BOD Member
 
Join Date: Nov 2010
Posts: 91
Default Encryption and Decryption in PHP?

Hi

I am trying to include encrypt and decrypt option in my PHP program. Actually I am looking to encrypt the cPanel server remote key before storing to database and then decrypt it so then I can use cPanel API. Is there any option available for this purpose?
Reply With Quote
  #2 (permalink)  
Old 02-04-11, 09:00
Kristine Habeck's Avatar
BOD Member
 
Join Date: Nov 2010
Posts: 122
Default

You need to check whether Mcrypt module installed in your PHP or not. You can use that function, because it supports more than 10 crypt algorithms. You will also find standard modules in PHP manual about Mcrypt.
Reply With Quote
  #3 (permalink)  
Old 02-04-11, 09:02
Rozanne's Avatar
BOD Member
 
Join Date: Nov 2010
Posts: 116
Default

Will you feel secure, if someone is able to read your database but not you PHP scripts? Encryption in the database is useless if your PHP scripts have the ways to decrypt automatically. You should put the key into your PHP script and encrypt it lot with ioncube. Its not totally unbreakable, but it is better than anything else.
Reply With Quote
  #4 (permalink)  
Old 02-04-11, 09:03
BOD Member
 
Join Date: Nov 2010
Posts: 91
Default

For PHP source code I know the Source-Guardian is the best option available at free of cost so that is not my actual concern. What I wan to do, encrypt and decrypt data in MySQL database.
Reply With Quote
  #5 (permalink)  
Old 02-04-11, 09:04
Rozanne's Avatar
BOD Member
 
Join Date: Nov 2010
Posts: 116
Default

As you looking for to protect the data in the database then you should consider encrypted file systems with secure protection to the code that reads and writes data to the database. You also need to understand the fundamental limitations to what it possible with all the PHP libraries being as an open-source.
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump


All times are GMT -6. The time now is 01:06.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright © 1999-2012, BODHost Ltd. All rights reserved.