summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/libraries/Encrypt.php10
-rw-r--r--user_guide/libraries/encryption.html8
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';<br />
$plaintext_string = $this->encrypt->decode($encrypted_string);</code>
-<h2>$this->encrypt->set_cypher();</h2>
+<h2>$this->encrypt->set_cipher();</h2>
-<p>Permits you to set an Mcrypt cypher. By default it uses <samp>MCRYPT_RIJNDAEL_256</samp>. Example:
-<code>$this->encrypt->set_cypher('MCRYPT_BLOWFISH');</code>
-<p>Please visit php.net for a list of <a href="http://php.net/mcrypt">available cyphers</a>.</p>
+<p>Permits you to set an Mcrypt cipher. By default it uses <samp>MCRYPT_RIJNDAEL_256</samp>. Example:
+<code>$this->encrypt->set_cipher('MCRYPT_BLOWFISH');</code>
+<p>Please visit php.net for a list of <a href="http://php.net/mcrypt">available ciphers</a>.</p>
<p>If you'd like to manually test whether your server supports Mcrypt you can use:</p>
<code>echo ( ! function_exists('mcrypt_encrypt')) ? 'Nope' : 'Yup';</code>