2017 © Pedro Peláez
 

library aes-encryption

An AES Encrypter for PHP

image

tebru/aes-encryption

An AES Encrypter for PHP

  • Wednesday, August 5, 2015
  • by natebrunette
  • Repository
  • 2 Watchers
  • 7 Stars
  • 5,615 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 6 Versions
  • 10 % Grown

The README.md

PHP AES Encrypter

Build Status Coverage Status Scrutinizer Code Quality, (*1)

A simple class to handle AES encryption of data, (*2)

DISCLAIMER: While the encryption/decryption has been tested, it has not been vetted by a security expert. Use at your own risk., (*3)

Installation

Install using composer, (*4)

composer require tebru/aes-encryption

Usage

Simply instantiate the encrypter class with a key and use the encrypt/decrypt methods, (*5)

<?php

$encrypter = new AesEncrypter($key);
$encrypted = $encrypter->encrypt('My secure data');
$decrypted = $encrypter->decrypt($encrypted);

The encrypt method is able to handle encryption of any kind of data because it serializes the data first., (*6)

Encryption Methods

This library supports aes128 aes192 and aes256. It uses aes256 by default., (*7)

Use the AesEnum to use a different method., (*8)

new AesEncrypter($key, AesEnum::METHOD_128);

Encryption Strategy

Current supported PHP extensions are mcrypt and openssl. This library requires mcrypt, but will use openssl instead if it is available., (*9)

Upon constructing the encrypter, you may force the usage of one or the other., (*10)

new AesEncrypter($key, AesEnum::METHOD_256, AesEncrypter::STRATEGY_MCRYPT);

The Versions

05/08 2015

dev-master

9999999-dev

An AES Encrypter for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nate Brunette

18/07 2015

v0.3.0

0.3.0.0

An AES Encrypter for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nate Brunette

14/05 2015

v0.2.0

0.2.0.0

An AES Encrypter for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nate Brunette

14/05 2015

v0.1.2

0.1.2.0

An AES Encrypter for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nate Brunette

11/05 2015

v0.1.1

0.1.1.0

An AES Encrypter for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nate Brunette

10/05 2015

v0.1.0

0.1.0.0

An AES Encrypter for PHP

  Sources   Download

MIT

The Requires

 

The Development Requires

by Nate Brunette