home/includes/functions.php
/*
     * Function to decrypt sensitive data from the database for displaying
     *
     * @param string	$value		The text to be decrypted
	 * @param 			$decodeKey	The Key to use for decryption
     * @return						The decrypted text
     */
Function to decrypt sensitive data from the database for displaying
@param string    $value          The text to be decrypted
@param                       $decodeKey      The Key to use for decryption
@return                                          The decrypted text
Function to decrypt sensitive data from the database for displaying @param string $value The text to be decrypted @param $decodeKey The Key to use for decryption @return The decrypted text
function decryptIt($value) {
		$decodeKey = 'dS+D.f^Li1KUqJ4tgX14`Jy,A9ejk?uwnXaNSD@fQ+dCZIF!';
		$decoded = rtrim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, md5($decodeKey), base64_decode($value), MCRYPT_MODE_CBC, md5(md5($decodeKey))), "\0");
		return($decoded);
	}
function decryptIt ( $ value ) { $ decodeKey = 'dS+D.f^Li1KUqJ4tgX14`Jy,A9ejk?uwnXaNSD@fQ+dCZIF!' ; $ decoded = rtrim ( mcrypt_decrypt ( MCRYPT_RIJNDAEL_256 , md5 ( $ decodeKey ) , base64_decode ( $ value ) , MCRYPT_MODE_CBC , md5 ( md5 ( $ decodeKey ) ) ) , " \0 " ) ; return ( $ decoded ) ; }
Function to decrypt sensitive data from the database for displaying
 @param string    $value          The text to be decrypted
 @param                       $decodeKey      The Key to use for decryption
 @return                                          The decrypted text
Function to decrypt sensitive data from the database for displaying @param string $value The text to be decrypted @param $decodeKey The Key to use for decryption @return The decrypted text
// The decodeKey MUST match the encodeKey