Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
rafrsr committed Dec 30, 2015
1 parent bc6d6a7 commit 190b120
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ Easy encrypt and decrypt strings in PHP.

use Rafrsr\Crypto\Crypto;

$encryptor = Crypto::build('JH83UN177772JJASHGAGG38UABASDSD', MCRYPT_RIJNDAEL_128);
$encryptor = Crypto::build('JH83UN177772JJASHGAGG38UABASDSD');
//$encryptor = Crypto::build('JH83UN177772JJASHGAGG38UABASDSD', MCRYPT_RIJNDAEL_128); //using specific algorithm

$secret = $encryptor->encrypt('This is a secret message');

Expand All @@ -33,4 +34,6 @@ $notSecret = $encryptor->decrypt($secret);

if (!$encryptor->isEncrypted($notSecret)) {
echo 'The message is not encrypted';
}
}

````

0 comments on commit 190b120

Please sign in to comment.