includes/helpers.php
/**
	 * Encrypts a value using the fast-encrypt library. If the given value is not a string, it will be serialized
	 * internally, but calling decrypt() will unserialize it automatically.
	 *
	 * Important: This is a fast and ultimately insecure encryption tool. It uses variables from the current environment
	 * and server to build its encryption, but it isn't difficult to guess these variables and reverse the encryption.
	 * Use it liberally only when appropriate.
	 *
	 * @param string|mixed $value
	 * @return string
	 */
Encrypts a value using the fast-encrypt library. If the given value is not a string, it will be serialized
internally, but calling decrypt() will unserialize it automatically.

This is a fast and ultimately insecure encryption tool. It uses variables from the current environment
and server to build its encryption, but it isn't difficult to guess these variables and reverse the encryption.
Use it liberally only when appropriate.

@param string|mixed $value
@return string
Encrypts a value using the fast - encrypt library . If the given value is not a string it will be serialized internally but calling decrypt () will unserialize it automatically . This is a fast and ultimately insecure encryption tool . It uses variables from the current environment and server to build its encryption but it isn ' t difficult to guess these variables and reverse the encryption . Use it liberally only when appropriate . @param string|mixed $value @return string
function encrypt($value) {
		if (!is_string($value)) {
			$value = serialize($value);
		}
		return FastEncrypt::encrypt($value);
	}
function encrypt ( $ value ) { if ( ! is_string ( $ value ) ) { $ value = serialize ( $ value ) ; } return FastEncrypt :: encrypt ( $ value ) ; }
Encrypts a value using the fast-encrypt library.
Encrypts a value using the fast - encrypt library .