2017 © Pedro Peláez
 

library crypto

crypto - encryption php library

image

g4/crypto

crypto - encryption php library

  • Tuesday, December 6, 2016
  • by g4code
  • Repository
  • 4 Watchers
  • 2 Stars
  • 14,668 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 20 % Grown

The README.md

crypto

crypto - php library, (*1)

Install

Via Composer, (*2)

composer require g4/crypto

Usage

OpenSSL extension, (*3)

``` php <?php, (*4)

use G4\Crypto\Crypt; use G4\Crypto\Adapter\OpenSSL;, (*5)

$crypto = new Crypt(new OpenSSL()); $crypto->setEncryptionKey('tHi5Is');, (*6)

$encryptedMessage = $crypto->encode('new message');, (*7)

$message = $crypto->decode($encryptedMessage);, (*8)


Mcrypt extension - obsolete [mcrypt-viking-funeral](https://wiki.php.net/rfc/mcrypt-viking-funeral) ``` php <?php use G4\Crypto\Crypt; use G4\Crypto\Adapter\Mcrypt; $crypto = new Crypt(new Mcrypt()); $crypto->setEncryptionKey('tHi5Is'); $encryptedMessage = $crypto->encode('new message'); $message = $crypto->decode($encryptedMessage);

Development

Install dependencies

$ composer install

Run tests

$ make integration-tests

License

(The MIT License) see LICENSE file for details..., (*9)

The Versions

06/12 2016

dev-master

9999999-dev

crypto - encryption php library

  Sources   Download

MIT

The Requires

  • ext-mcrypt *

 

The Development Requires

encryption crypto cipher mcrypt

06/12 2016

dev-develop

dev-develop

crypto - encryption php library

  Sources   Download

MIT

The Requires

  • ext-mcrypt *

 

The Development Requires

encryption crypto cipher mcrypt

06/12 2016

2.0.0

2.0.0.0

crypto - encryption php library

  Sources   Download

MIT

The Requires

  • ext-mcrypt *

 

The Development Requires

encryption crypto cipher mcrypt

07/11 2014

1.0.1

1.0.1.0

crypto - encryption php library

  Sources   Download

MIT

The Requires

  • ext-mcrypt *

 

The Development Requires

encryption crypto cipher mcrypt

07/11 2014

1.0.0

1.0.0.0

crypto - encryption php library

  Sources   Download

MIT

The Requires

  • ext-mcrypt *

 

The Development Requires

encryption crypto cipher mcrypt