summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2007-06-18 02:14:57 +0200
committerDerek Allard <derek.allard@ellislab.com>2007-06-18 02:14:57 +0200
commit5a94ae5be5d82cd033e316fdd8a38a605563bcb4 (patch)
tree894637e8f8d11d9b25042f44e87296cb9b0bc574
parent83ec240297a25342748846df84ad3c5ecb7cd623 (diff)
typo in example
-rw-r--r--user_guide/libraries/encryption.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/user_guide/libraries/encryption.html b/user_guide/libraries/encryption.html
index 6f020a692..7c6f909b2 100644
--- a/user_guide/libraries/encryption.html
+++ b/user_guide/libraries/encryption.html
@@ -141,7 +141,7 @@ $plaintext_string = $this->encrypt->decode($encrypted_string);</code>
<h2>$this->encrypt->set_cipher();</h2>
<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>
+<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>
@@ -151,7 +151,7 @@ $plaintext_string = $this->encrypt->decode($encrypted_string);</code>
<h2>$this->encrypt->set_mode();</h2>
<p>Permits you to set an Mcrypt mode. By default it uses <samp>MCRYPT_MODE_ECB</samp>. Example:
-<code>$this->encrypt->set_mode('MCRYPT_MODE_CFB');</code>
+<code>$this->encrypt->set_mode(MCRYPT_MODE_CFB);</code>
<p>Please visit php.net for a list of <a href="http://php.net/mcrypt">available modes</a>.</p>