2017 © Pedro Peláez
 

library crypt

A simple crypt lib

image

lefuturiste/crypt

A simple crypt lib

  • Sunday, December 31, 2017
  • by lefuturiste
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Crypt

This is small lib to use symmetric cryptography with php., (*1)

Installation

composer require lefuturiste/crypt, (*2)

Usage

Simple usage like this:, (*3)

$crypt = new Lefuturiste\Crypt\Crypt('YOUR_PASSWORD');
$cipher = $crypt->encrypt('YOUR DATA');
$plainText = $crypt->decrypt($cipher); //YOUR DATA

You can change the method in Crypt constructor :, (*4)

$crypt = new Lefuturiste\Crypt\Crypt('YOUR_PASSWORD', 'AES-128-CFB1');
$cipher = $crypt->encrypt('YOUR DATA');
$plainText = $crypt->decrypt($cipher); //YOUR DATA

Get list of method available : http://php.net/manual/en/function.openssl-get-cipher-methods.php, (*5)

Tests

You can test the lib :, (*6)

vendor/bin/phpunit Tests, (*7)

Contribution

This is my own usage, and this is very simple usage of cryptography. This is mostly for my personal usage. But you can reports bug, or others things, it's open source project! You can contribute by pull request, the common method in GitHub., (*8)

The Versions

31/12 2017

dev-master

9999999-dev

A simple crypt lib

  Sources   Download

MIT

The Development Requires

by Matthieu Bessat

31/12 2017

0.1

0.1.0.0

A simple crypt lib

  Sources   Download

MIT

The Development Requires

by Matthieu Bessat