Here is a security system that will encrypt and decrypt values that are passed around in the webid php files. You can use it to hide the real values and i use it in my script to hide the users sessions value so they would need to be decrypted and you can also use it to hide the value that are used in the address bar so it don't look like this http://domain.com/selling.php?paid=1 and would look like this http://domain.com/selling.php?paid=syeOnWBuOBk05CfWHJq/Mqw1uqf5ytztDXYswX60VuA= but there is a lot of things you can use it for. The encryption system use's 256-bit AES encryption and makes it harder to brute-force the coding to try to hack the server. You will need Mcrypt enabled on your server.
private $private_key, $iv;
# Private key that is used to encrypt and decrypt things
# Change this to a different key and must be 32 characters or less
$this->private_key = 'ERw6W:&5$;_~WaNejtqRH*#d2(>4r%`6';
# --- ENCRYPTION CIPHER ---
$iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC);
$this->iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
# Encrypt a value using AES-256.
return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $this->private_key, $unencrypted_text, MCRYPT_MODE_ECB, $this->iv)));
# Decrypt a value using AES-256.
return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $this->private_key, base64_decode($encrypted_text), MCRYPT_MODE_ECB, $this->iv));
$system = new global_class();
$security = new security();
Upload common.php and functions_global.php to your server
Now to use the encryption and decryption system you would use the codes shown below.
To encrypt use
and will turn to a random code like syeOnWBuOBk05CfWHJq/Mqw1uqf5ytztDXYswX60VuA=PHP:
$security->encrypt(your unencrypted text here);
To decrypt use
and will decrypt syeOnWBuOBk05CfWHJq/Mqw1uqf5ytztDXYswX60VuA= to the value that it was before it was encrypted.PHP:
$security->decrypt(your encrypted code here);
To fully use the encryption and decryption system you will need some knowledge of php.
$_SESSION['WEBID_LOGGED_IN'] now will display syeOnWBuOBk05CfWHJq/Mqw1uqf5ytztDXYswX60VuA= and not 100PHP:
$_SESSION['WEBID_LOGGED_IN'] = $security->encrypt($user_data['id']); //test value we will use 100
$test now will display 100PHP:
$test = $security->decrypt($_SESSION['WEBID_LOGGED_IN']);
If you use the encryption and decryption system make sure to change the change the key to a different key and must be 32 characters long or less.
There is no download files and the webid forums made me pick that and all the codes are shown above.