PHP

PHP ~ AES256 OpenSSL Encryption Class

This is a PHP Class that utilizes OpenSSL AES-256bit to encrypt / decrypt data. PHP Class :: cryptor.class.php class Cryptor { protected $method = ‘AES-256-CBC’; // default private $key; protected function iv_bytes() { return openssl_cipher_iv_length($this->method); } public function __construct($key = FALSE, $method = FALSE) { if(!$key) { // if you don’t supply your own key, […]