2017 © Pedro Peláez
 

libary php-aes

Encryption and decryption using asymmetric cryptography (using PHP OpenSSL extention)

image

zmisgod/php-aes

Encryption and decryption using asymmetric cryptography (using PHP OpenSSL extention)

  • Friday, January 5, 2018
  • by zmisgod
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

php-aes

based on PHP OpenSSL extension, (*1)

This Aes Class using OpenSSL extension of PHP. The official of PHP manual suggest us using OpenSSL to replace Mcrypt extention, (*2)

before using this

  • Check your php extension and find OpenSSL.

php -m | grep openssl, (*3)

install

composer require zmisgod/php-aes

usage

Here is a example, (*4)

<?php
require_once __DIR__ . '/vendor/autoload.php';
$aes     = new SimpleAes\Aes();
$encrypt = $aes->encrypt( 'star zmisgod' );
echo $encrypt . PHP_EOL;
//output : xviTncBNkTIg/44a27uGzw==

echo $aes->decrypt( $encrypt ) . PHP_EOL;
//output : star zmisgod

contact

zmis.me, (*5)

@zmisgod, (*6)

The Versions

05/01 2018

dev-master

9999999-dev

Encryption and decryption using asymmetric cryptography (using PHP OpenSSL extention)

  Sources   Download

MIT

The Requires

  • ext-openssl *

 

by Avatar zmisgod

php encryption aes decryption