Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>AES is best encryption to Use. :)</p> <p>I’ve been using an AES encryption class for a little over a year now, and it is an excellent way to use FIPS Compliant AES encryption in php. The script comes in a free version (ECB mode only) and a paid version for only $10.</p> <p>This is a completely standalone class that does not require the mcrypt library, and has php4 and php5 support. Encryption is available in 128, 192, and 256 bit, depending on the cipher length.</p> <p>Using it is easy as this:</p> <pre><code>include("AES.class.php"); $my_256_key = 'MpDsw*8cQM&amp;fez*7eBoZB^W*kP652NoW'; $initialization_vector = 'WmR&amp;z28zWn8r*9$R'; $aes = new AES($my_256_key, "CBC", $initialization_vector); $string_to_encrypt = 'SOME STRING OF TEXT, OR EVEN AN ENTIRE FILE'; $encrypted_string = $aes-&gt;encrypt($string_to_encrypt); $original_string = $aes-&gt;decrypt($encrypted_string); </code></pre> <p>The cipher modes that are supported are: Electronic Codebook (ECB), Cipher Block Chaining (CBC), Cipher Feedback (CFB), and Output Feedback (OFB). –Block Cipher Modes »</p> <p>If you are needing to integrate real encryption into a script, I highly recommend this class. It’s strong enough for storing sensitive data like credit cards (key management is another topic), and has an extremely easy interface.</p> <p>Keep in mind that encryption is only as secure as the key and the key management that is used. Unlike using hash functions (Md5, SHA1), encryption can be reversed, and will considerably slow down a PHP script, especially so for encrypting large amounts of data.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload