summaryrefslogtreecommitdiffstats
path: root/user_guide/libraries/encryption.html
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2009-09-18 07:27:19 +0200
committerDerek Allard <derek.allard@ellislab.com>2009-09-18 07:27:19 +0200
commit2aab78529d3570a39197cf2e58e953b16a26bee5 (patch)
tree5523b3bbf70bab031df2b899133515370f875f87 /user_guide/libraries/encryption.html
parent770636392412b0151ee684bc74798b3a2b7e1318 (diff)
Documented a second argument in the decode() function for the Encryption Class
Diffstat (limited to 'user_guide/libraries/encryption.html')
-rw-r--r--user_guide/libraries/encryption.html8
1 files changed, 8 insertions, 0 deletions
diff --git a/user_guide/libraries/encryption.html b/user_guide/libraries/encryption.html
index ef941d5b7..124b64793 100644
--- a/user_guide/libraries/encryption.html
+++ b/user_guide/libraries/encryption.html
@@ -132,6 +132,14 @@ $encrypted_string = 'APANtByIGI1BpVXZTJgcsAG8GZl8pdwwa84';<br />
<br />
$plaintext_string = $this->encrypt->decode($encrypted_string);</code>
+<p>You can optionally pass your encryption key via the second parameter if you don't want to use the one in your config file:</p>
+
+<code>
+$msg = 'My secret message';<br />
+$key = 'super-secret-key';<br />
+<br />
+$encrypted_string = $this->encrypt->decode($msg, $key);</code>
+
<h2>$this->encrypt->set_cipher();</h2>