From 9fa003797d794a63aa58356926fac9649269c668 Mon Sep 17 00:00:00 2001 From: admin Date: Thu, 12 Oct 2006 18:20:13 +0000 Subject: --- system/libraries/Encrypt.php | 10 +++++----- user_guide/libraries/encryption.html | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/system/libraries/Encrypt.php b/system/libraries/Encrypt.php index 50b3fab39..b7dba2523 100644 --- a/system/libraries/Encrypt.php +++ b/system/libraries/Encrypt.php @@ -272,15 +272,15 @@ class CI_Encrypt { // -------------------------------------------------------------------- /** - * Set the Mcrypt Cypher + * Set the Mcrypt Cipher * * @access public * @param constant * @return string */ - function set_cypher($cypher) + function set_cipher($cipher) { - $this->_mcrypt_cipher = $cypher; + $this->_mcrypt_cipher = $cipher; } // -------------------------------------------------------------------- @@ -300,12 +300,12 @@ class CI_Encrypt { // -------------------------------------------------------------------- /** - * Get Mcrypt Cypher Value + * Get Mcrypt cipher Value * * @access private * @return string */ - function _get_cypher() + function _get_cipher() { if ($this->_mcrypt_cipher == '') { diff --git a/user_guide/libraries/encryption.html b/user_guide/libraries/encryption.html index df5c6eb60..3a774e2c7 100644 --- a/user_guide/libraries/encryption.html +++ b/user_guide/libraries/encryption.html @@ -138,11 +138,11 @@ $encrypted_string = 'APANtByIGI1BpVXZTJgcsAG8GZl8pdwwa84';
$plaintext_string = $this->encrypt->decode($encrypted_string); -

$this->encrypt->set_cypher();

+

$this->encrypt->set_cipher();

-

Permits you to set an Mcrypt cypher. By default it uses MCRYPT_RIJNDAEL_256. Example: -$this->encrypt->set_cypher('MCRYPT_BLOWFISH'); -

Please visit php.net for a list of available cyphers.

+

Permits you to set an Mcrypt cipher. By default it uses MCRYPT_RIJNDAEL_256. Example: +$this->encrypt->set_cipher('MCRYPT_BLOWFISH'); +

Please visit php.net for a list of available ciphers.

If you'd like to manually test whether your server supports Mcrypt you can use:

echo ( ! function_exists('mcrypt_encrypt')) ? 'Nope' : 'Yup'; -- cgit v1.2.3-24-g4f1b