2017 © Pedro Peláez
 

library asymmetricrypt

A simple PHP public key cryptography library

image

asymmetricrypt/asymmetricrypt

A simple PHP public key cryptography library

  • Friday, September 13, 2013
  • by Flatline
  • Repository
  • 1 Watchers
  • 10 Stars
  • 1,728 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 2 % Grown

The README.md

AsymmetriCrypt - Simple PHP public key cryptography

Build Status, (*1)

Installation

Require asymmetricrypt/asymmetricrypt in your project's composer.json:, (*2)

{
    "require": {
        "asymmetricrypt/asymmetricrypt": "0.1.*"
    }
}

Now update or install your packages with composer update or composer install respectively., (*3)

Usage

<?php

use AsymmetriCrypt\Crypter;
use AsymmetriCrypt\Key\PublicKey;
use AsymmetriCrypt\Key\PrivateKey;

// Create a private key
$priv = Crypter::createPrivateKey();
// or
$priv = PrivateKey::create();

// Load a private key
$priv = Crypter::loadPrivateKey("file:///path/to/key.pem");
// or
$priv = new PrivateKey("file:///path/to/key.pem");

// Get derived public key
$pub = $priv->getPublicKey();

// Load a public key
$pub = Crypter::loadPublicKey("file:///path/to/key.pub");
// or
$pub = new PublicKey("file:///path/to/key.pub");

// Encrypt data
$encrypted = Crypter::encrypt("data to encrypt", $pub);

// Decrypt data
$decrypted = Crypter::decrypt($encrypted, $priv);

// Sign data
$signature = Crypter::sign("data to sign", $priv);

// Verify signature
$signature_valid = Crypter::verify("data to sign", $signature, $pub);

Docs

I'm still working on a detailed documentation, but I don't have an ETA., (*4)

Bitdeli Badge, (*5)

The Versions

13/09 2013

dev-master

9999999-dev https://github.com/xFlatlinex/AsymmetriCrypt

A simple PHP public key cryptography library

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-openssl *

 

The Development Requires

security encryption rsa cryptography private key public key

05/02 2013

dev-develop

dev-develop https://github.com/xFlatlinex/AsymmetriCrypt

A simple PHP public key cryptography library

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-openssl *

 

The Development Requires

security encryption rsa cryptography private key public key

05/02 2013

0.3.0

0.3.0.0 https://github.com/xFlatlinex/AsymmetriCrypt

A simple PHP public key cryptography library

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-openssl *

 

The Development Requires

security encryption rsa cryptography private key public key

01/02 2013

0.2.1

0.2.1.0 https://github.com/xFlatlinex/AsymmetriCrypt

A simple PHP public key cryptography library

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-openssl *

 

security encryption rsa cryptography private key public key

08/01 2013

0.2.0

0.2.0.0 https://github.com/xFlatlinex/AsymmetriCrypt

A simple PHP public key cryptography library

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-openssl *

 

security encryption rsa cryptography private key public key

04/01 2013

0.1.0

0.1.0.0 https://github.com/xFlatlinex/AsymmetriCrypt

A simple PHP public key cryptography library

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-openssl *

 

security encryption rsa cryptography private key public key