Skip to content

Encryption and decryption using asymmetric cryptography (using OpenSSL extention)

Notifications You must be signed in to change notification settings

zmisgod/php-aes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-aes

based on PHP OpenSSL extension

This Aes Class using OpenSSL extension of PHP. The official of PHP manual suggest us using OpenSSL to replace Mcrypt extention

before using this

  • Check your php extension and find OpenSSL.

php -m | grep openssl

install

composer require zmisgod/php-aes

usage

Here is a example

<?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

@zmisgod

About

Encryption and decryption using asymmetric cryptography (using OpenSSL extention)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages