2017 © Pedro Peláez
 

library aes

A lightweight AES library.

image

benoitsan/aes

A lightweight AES library.

  • Monday, December 19, 2016
  • by benoitsan
  • Repository
  • 1 Watchers
  • 3 Stars
  • 78 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 1 Versions
  • 1 % Grown

The README.md

BBAES-PHP

BBAES-PHP is a lightweight AES Encryption Class with PHP 5.6+., (*1)

BBAES-PHP uses the AES128 algorithm in CBC mode with PKCS#7 padding., (*2)

Requirements

  • PHP 5.6+
  • PHPUnit to execute the tests (Optional).

Installation

Install first composer. Create the following composer.json file and run the composer install command to install it., (*3)

``` json { "require": { "benoitsan/aes": "*" } }, (*4)


``` php <?php require 'vendor/autoload.php'; use \AES\AES; $key = AES::saltPassword('password', AES::salt()); $encrypted = AES::encrypt('message', $key); printf('encrypted: ' . $encrypted . "<br/>"); $decrypted = AES::decrypt($encrypted, $key); printf('decrypted: ' . $decrypted);

Documentation

The file AES.php is documented. Have also a look at the demo and unit tests to see how to use the class., (*5)

Creator

Benoît Bourdon (@benoitsan)., (*6)

License

BBAES-PHP is available under the MIT license. See the LICENSE file for more info., (*7)

The Versions

19/12 2016

dev-master

9999999-dev https://github.com/benoitsan/BBAES-PHP

A lightweight AES library.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

encryption aes