summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries/encryption.html
diff options
context:
space:
mode:
Diffstat (limited to 'user_guide/libraries/encryption.html')
-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>