Results 1 to 7 of 7
  1. #1
    Join Date
    Jul 2009
    Location
    Manila
    Posts
    301

    php encrytor and decryptor, how?

    I am looking (free or paid) for an encryptor and decryptor that i can use in my php program. Basically i want to encrypt the cpanel server remote access key before storing to database and then decrypt it so i can use cPanel API.

    Is there a good encryptor and decryptor i can use for this purpose?

  2. #2
    Join Date
    Mar 2005
    Location
    Athens, Greece
    Posts
    1,528
    You can have a look at PEAR Crypt packages.

    http://pear.php.net/search.php?q=cry...es&x=0&y=0&p=1
    Antonis Adamakos @ FuzzFree :: Fully Managed Web Hosting, Development, Online Marketing

  3. #3
    Iа your php have Mcrypt module installed, you can use its functions. It supports more then 10 crypt algorithms. Also it's standard module, therefore it's well documented in php manual.

  4. #4
    Join Date
    Mar 2009
    Location
    Gods Own Country
    Posts
    681
    may be, its better to write something your own and ioncube it
    Fabin Mundattil @ Xieles Support
    High Quality Server Management | support @ xieles.com
    http://xieles.com

  5. #5
    Join Date
    Feb 2005
    Location
    Australia
    Posts
    5,842
    Quote Originally Posted by emsjs1 View Post
    Basically i want to encrypt the cpanel server remote access key before storing to database and then decrypt it so i can use cPanel API.
    So that if someone happens to be able to read your database but not your PHP scripts you'll be safe? What are the chances? Encryption in the database is pretty much useless if your PHP scripts have the means to decrypt automatically.

    As fabin suggested, your best bet would be to put the key into your script and encrypt the lot with ioncube. Still not unbreakable but better than anything else available.
    Chris

    "Some problems are so complex that you have to be highly intelligent and well informed just to be undecided about them." - Laurence J. Peter

  6. #6
    Join Date
    Jul 2009
    Location
    Manila
    Posts
    301
    Quote Originally Posted by fabin View Post
    may be, its better to write something your own and ioncube it
    fabin and foobic, Sorry if you misunderstood my post. I was asking for an encrytor and decryptor for mysql so that the server access hash key will not be easily seen. It's like encrypting passwords but I cant use md5 because I need to decrypt it.

    For PHP source code encryptor and decryptor, that is not a problem. Sourceguardian is available for free. My problem is how to encrypt and decrypt data in mysql database

  7. #7
    Join Date
    Mar 2002
    Location
    London & Kent, UK
    Posts
    372
    Quote Originally Posted by emsjs1 View Post
    fabin and foobic, Sorry if you misunderstood my post. I was asking for an encrytor and decryptor for mysql so that the server access hash key will not be easily seen. It's like encrypting passwords but I cant use md5 because I need to decrypt it.

    For PHP source code encryptor and decryptor, that is not a problem. Sourceguardian is available for free. My problem is how to encrypt and decrypt data in mysql database
    If you want to protect the connection password, you must encode the scripts too because it'll be obvious how to restore the password. As for SG, it's not available for free legally unless you already own a legitimate license.

    If you also want to protect the data in the database properly then you might consider using encrypted file systems as well as protection to the code that reads and writes data to the database. Also be aware of the fundamental limitations to what is possible with all the PHP libraries being opensource.
    Real-time intrusion protection and error reporting for PHP sites ioncube24.com
    Software protection for website owners and PHP developers ionCube PHP Encoder

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •