2017 © Pedro Peláez
 

library encrypter

A powerful encrypter library based on illuminate/encryption

image

zqhong/encrypter

A powerful encrypter library based on illuminate/encryption

  • Sunday, April 9, 2017
  • by zqhong
  • Repository
  • 1 Watchers
  • 0 Stars
  • 58 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 14 % Grown

The README.md

Encrypter - A powerful encrypter library based on illuminate/encryption

The encryption algorithms that Encrypter supports: * AES-128-CFB * AES-192-CFB * AES-256-CFB * RC4 * RC4-MD5, (*1)

Simple

<?php

require __DIR__ . "/vendor/autoload.php";


use Zqhong\Encrypter\Encrypter;

$key = 'password';
$cipher = 'RC4-MD5';
$plainText = 'hello world';
$encrypter = new Encrypter($key, $cipher);

$payload = $encrypter->encryptString($plainText);
echo $payload . PHP_EOL;
echo $encrypter->decryptString($payload) . PHP_EOL;

// will output
//eyJpdiI6IiIsInZhbHVlIjoiMDIxR1dXcHg4K21yR2RBPSIsIm1hYyI6ImRhYzFjYWFjODg5ODA1MWFlMWE0OTZmYTNjMTlkYWIxNDExZjAzYzU2ZjlhM2FmMTY1ZWYwYjFkYTJiZjJkNjgifQ==
//hello world

The Versions

09/04 2017

dev-master

9999999-dev

A powerful encrypter library based on illuminate/encryption

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar zqhong

09/04 2017

v1.1

1.1.0.0

A powerful encrypter library based on illuminate/encryption

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar zqhong

09/04 2017

v1.0

1.0.0.0

A powerful encrypter library based on illuminate/encryption

  Sources   Download

MIT

The Requires

 

The Development Requires

by Avatar zqhong