CI_Encryption::encrypt()

encrypt($data[, $params = NULL])

Parameters:
  • $data (string) – Data to encrypt
  • $params (array) – Optional parameters
Returns:

Encrypted data or FALSE on failure

Return type:

string

Encrypts the input data and returns its ciphertext.

Example:

$ciphertext = $this->encryption->encrypt('My secret message');

Please refer to the Using custom parameters section for information on the optional parameters.

doc_CodeIgniter
2016-10-15 16:31:32
Comments
Leave a Comment

Please login to continue.