From 2aab78529d3570a39197cf2e58e953b16a26bee5 Mon Sep 17 00:00:00 2001 From: Derek Allard Date: Fri, 18 Sep 2009 05:27:19 +0000 Subject: Documented a second argument in the decode() function for the Encryption Class --- user_guide/libraries/encryption.html | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'user_guide') 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';

$plaintext_string = $this->encrypt->decode($encrypted_string); +

You can optionally pass your encryption key via the second parameter if you don't want to use the one in your config file:

+ + +$msg = 'My secret message';
+$key = 'super-secret-key';
+
+$encrypted_string = $this->encrypt->decode($msg, $key);
+

$this->encrypt->set_cipher();

-- cgit v1.2.3-24-g4f1b