Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kitlabs-cn/kitcryptbundle

Encryption and decryption in symfony.(DES,3DES,IDEA,RC2,RC4,RSA,DSA,AES,BLOWFISH)
https://github.com/kitlabs-cn/kitcryptbundle

3des crypto rsa symfony symfony-bundle

Last synced: about 1 month ago
JSON representation

Encryption and decryption in symfony.(DES,3DES,IDEA,RC2,RC4,RSA,DSA,AES,BLOWFISH)

Awesome Lists containing this project

README

        

# KitCryptBundle
Symfony Crypt Bundle(use openssl)

## Installation

### Step 1: Download the Bundle
---------------------------

Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:


$ composer require kitlabs/kit-crypt-bundle


This command requires you to have Composer installed globally, as explained
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
of the Composer documentation.

### Step 2: Enable the Bundle
---------------------------

Then, enable the bundle by adding it to the list of registered bundles
in the `app/AppKernel.php` file of your project:
``` php
get('kit_crypt.openssl');
$encrypt = $opensslService->encrypt('lcp0578', 'data_api'); //public function encrypt($string, $name = 'default', $iv = null)
dump($encrypt);
dump($opensslService->decrypt($encrypt, 'data_api')); //public function decrypt($string, $name = 'default', $iv = null)
function cryptoJsAesDecrypt($passphrase, $ct, $iv, $s)
function cryptoJsAesEncrypt($passphrase, $value)
```