Skip to content

Commit

Permalink
Update en/core-utility-libraries/security.rst
Browse files Browse the repository at this point in the history
The example for Security::cipher should not show encrypting and decrypting a password when it then goes on to say that this method should not be used for important data
  • Loading branch information
mcreenan committed Jan 30, 2013
1 parent 26599c5 commit 0d0a24f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions en/core-utility-libraries/security.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ Security API

Encrypts/Decrypts a text using the given key.::

// Encrypt your secret password with my_key
$secret = Security::cipher('my secret password', 'my_key');
// Encrypt your text with my_key
$secret = Security::cipher('hello world', 'my_key');

// Later decrypt your secret password
// Later decrypt your text
$nosecret = Security::cipher($secret, 'my_key');

``cipher()`` uses a **weak** XOR cipher and should **not** be used for
Expand Down

0 comments on commit 0d0a24f

Please sign in to comment.