|
Revision 10934, 403 bytes
(checked in by dwhittle, 3 weeks ago)
|
dwCryptPlugin: converted README to markdown format
|
- Property svn:mime-type set to
text/plain
- Property svn:eol-style set to
native
- Property svn:keywords set to
Id
|
| Line | |
|---|
| 1 |
dwCryptPlugin |
|---|
| 2 |
============= |
|---|
| 3 |
|
|---|
| 4 |
The `dwCryptPlugin` provides abstraction for the mcrypt library. |
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
Installation |
|---|
| 8 |
------------ |
|---|
| 9 |
|
|---|
| 10 |
* *Install the plugin* |
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
symfony plugin:install dwCryptPlugin |
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
* *Clear you cache* |
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
symfony cc |
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
Example |
|---|
| 23 |
------- |
|---|
| 24 |
|
|---|
| 25 |
$crypt = new sfCrypt('ecb', 'tripledes', 'sf$secret); |
|---|
| 26 |
|
|---|
| 27 |
$encrypted = $crypt->encrypt('some_data'); |
|---|
| 28 |
$decrypted = $crypt->decrypt($encrypted); |
|---|