2017 © Pedro Peláez
 

library crypto

Tiny encryption lib for PHP

image

moccalotto/crypto

Tiny encryption lib for PHP

  • Thursday, December 17, 2015
  • by moccalotto
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Crypto

Build Status, (*1)

Encrypt data using aes-128-cbc. Message authentication is done via sha-256 HMAC, (*2)

Installation

To add this package as a local, per-project dependency to your project, simply add a dependency on moccalotto/crypto to your project's composer.json file like so:, (*3)

{
    "require": {
        "moccalotto/crypto": "~0.8"
    }
}

Alternatively simply call composer require moccalotto/crypto, (*4)

Demo

<?php

use Moccalotto\Crypto\Crypto;

require 'vendor/autoload.php';

$key = 'some secret key';

$plaintext = 'This is the secret plaintext to be encrypted';

$encrypted = Crypto::with($key)->encrypt($plaintext);

echo Crypto::with($key)->decrypt($encrypted) . PHP_EOL;

The Versions

17/12 2015

dev-master

9999999-dev

Tiny encryption lib for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-openssl *

 

The Development Requires

security encryption cryptography crypto aes openssl cipher symmetric key cryptography

01/12 2015

0.8.1

0.8.1.0

Tiny encryption lib for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-openssl *

 

The Development Requires

security encryption cryptography crypto aes openssl cipher symmetric key cryptography

09/09 2015

0.8

0.8.0.0

Tiny encryption lib for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0
  • ext-openssl *

 

The Development Requires

security encryption cryptography crypto aes openssl cipher symmetric key cryptography