Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/kitlabs-cn/kitcryptbundle
- Owner: kitlabs-cn
- License: mit
- Created: 2017-07-23T11:22:14.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-11T09:16:41.000Z (over 1 year ago)
- Last Synced: 2024-11-15T22:20:12.669Z (about 2 months ago)
- Topics: 3des, crypto, rsa, symfony, symfony-bundle
- Language: PHP
- Size: 21.5 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```