Xerxes1 Posted April 27, 2009 Share Posted April 27, 2009 I need a basic encryption for my config.php so that people can't read it if they have access to the server, how can I implement this so people can download my software and run the encryption.php file to encrypt config.php? <?php // ****** MASTER DATABASE SETTINGS ****** // These are the settings required to connect to your MySQL Database. $sqlhostname = "localhost"; $sqlusername = "username"; $sqlpassword = "password"; $sqldb = "database"; // ****** STATUS CHECKS SYSTEM ****** // This option will allow CMS to perform full status checks. This, // however, slows down your site A LOT. It is therefore disabled by // default. $enable_status_image = "0"; // ****** SITE PATH ****** // The full URL to your site; with an slash added on the end. $path = "http://site.com"; // ****** REFFERAL REWARD ****** // The amount of credits a user recieves upon referring a friend to the // hotel. Set to '500' by default. $reward = "50"; // ****** CMS SYSTEM ADMINISTRATOR ****** // User ID of the System Administrator. Will be granted access to sensitive // features. Set to '1' by default. This setting will not change your // ingame priveliges. $sysadmin = "1"; // ****** CMS ENCRYPTION SYSTEM ****** // How CMS stores passowrds. // Do NOT manually change this unless you know what you are doing, // doing so may corrupt your database. $encryption = "new"; $hashtext = ""; // ****** BADGES ****** // Where badges are located. $cimagesurl = "http://images.site.co.uk/c_images/"; $badgesurl = "album1584/"; // ****** EMAIL VERIFY ****** // Email verification settings $email_verify = true; $email_force_verify = false; $email_verify_reward = "500"; ?> Link to comment https://forums.phpfreaks.com/topic/155833-encrypting-configphp/ Share on other sites More sharing options...
9three Posted April 27, 2009 Share Posted April 27, 2009 Zend has an encryption program. Link to comment https://forums.phpfreaks.com/topic/155833-encrypting-configphp/#findComment-820266 Share on other sites More sharing options...
chmpdog Posted April 27, 2009 Share Posted April 27, 2009 Donde? Link to comment https://forums.phpfreaks.com/topic/155833-encrypting-configphp/#findComment-820594 Share on other sites More sharing options...
Mchl Posted April 27, 2009 Share Posted April 27, 2009 Move the file outside document root? Link to comment https://forums.phpfreaks.com/topic/155833-encrypting-configphp/#findComment-820669 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.