Skip to content

tempbottle/php-openssl-crypt

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Data encryption with OpenSSL in PHP

It is a simple object oriented library for data encryption using the OpenSSL PHP extension.

See details in the blogpost.

Example usage:

namespace OpenSslCrypt;

$processor = new Processor();

/*
 * Encryption with the public key.
 */
$pubKey = Key\Pub::fromCertificateFile('ssl/crypt.crt');
$encData = $processor->encrypt($data, $pubKey);

/*
 * Decryption with the private key.
 */
$privKey = Key\Priv::fromPrivateKeyFile('ssl/crypt.key');
$decData = $processor->decrypt($encData, $privKey);

About

Data encryption with OpenSSL in PHP

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%