2017 © Pedro PelĂĄez
 

library kohana-encrypt

Encryption module for Kohana 3.3. Uses Encrypt-then-MAC scheme with OPENSSL (AES) and Encrypt-then-Sign (RSA).

image

pgolasz/kohana-encrypt

Encryption module for Kohana 3.3. Uses Encrypt-then-MAC scheme with OPENSSL (AES) and Encrypt-then-Sign (RSA).

  • Tuesday, August 29, 2017
  • by piotrgolasz
  • Repository
  • 1 Watchers
  • 0 Stars
  • 12 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 0 % Grown

The README.md

kohana-encrypt

Encryption module for Kohana 3.3. Port of Laravel Encrypt-then-MAC scheme for encrypting using OPENSSL (AES and RSA). Uses AES-256-CBC and AES-128-CBC, and user public and private keys with RSA., (*1)

Installation

$ cd modules
$ git clone [git-repo-url]

Add this line to Kohana::modules in your bootstrap.php:, (*2)

'kohana-encrypt' => MODPATH . 'kohana-encrypt'

Install phpseclib using composer, (*3)

$ composer install

Include autoload.php in your bootstrap.php, (*4)

/**
 * Enable composer autoload libraries
 */
require APPPATH . '../vendor/autoload.php';

Generate AES and RSA keys for your application, (*5)

$ php index.php --uri=task/encyptkeys

It's also possible to generate config inside common module of your application For example if your core classes are located in /modules/custommodule/classes, then config will be generated in /modules/custom/config, (*6)

$ php index.php --uri=task/encyptkeys --module=custommodule

Usage

  • OPENSSL (AES-256-CBC or AES-128-CBC)
$encrypt = Encrypt::instance();
echo $encrypt->encrypt('This is my secret');
  • RSA
$encrypt = Encrypt::instance('secondary');
echo $encrypt->encrypt('This is my secret');

License

MIT, (*7)

Free Software, Hell Yeah!, (*8)

The Versions

29/08 2017

dev-master

9999999-dev https://github.com/piotrgolasz/kohana-encrypt

Encryption module for Kohana 3.3. Uses Encrypt-then-MAC scheme with OPENSSL (AES) and Encrypt-then-Sign (RSA).

  Sources   Download

The Requires

 

by Piotr GoƂasz

module encryption rsa openssl kohana koseven

29/08 2017

1.0.3

1.0.3.0 https://github.com/piotrgolasz/kohana-encrypt

Encryption module for Kohana 3.3. Uses Encrypt-then-MAC scheme with OPENSSL (AES) and Encrypt-then-Sign (RSA).

  Sources   Download

by Piotr GoƂasz

module encryption rsa openssl kohana koseven

10/08 2016

dev-3.4/develop

dev-3.4/develop https://github.com/piotrgolasz/kohana-encrypt

Encryption module for Kohana 3.3. Uses Encrypt-then-MAC scheme with OPENSSL (AES) and Encrypt-then-Sign (RSA).

  Sources   Download

The Requires

 

by Piotr GoƂasz

module encryption rsa openssl kohana

10/08 2016

1.0.2

1.0.2.0 https://github.com/piotrgolasz/kohana-encrypt

Encryption module for Kohana 3.3. Uses Encrypt-then-MAC scheme with OPENSSL (AES) and Encrypt-then-Sign (RSA).

  Sources   Download

The Requires

 

by Piotr GoƂasz

module encryption rsa openssl kohana

17/07 2016

v1.0.1

1.0.1.0

  Sources   Download

The Requires

 

15/07 2016

v1.0

1.0.0.0

  Sources   Download

The Requires

 

13/07 2016

dev-old_lib

dev-old_lib

  Sources   Download

The Requires