File tree Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Expand file tree Collapse file tree 1 file changed +30
-1
lines changed Original file line number Diff line number Diff line change 1
1
Sidus/EncryptionBundle
2
2
====================
3
3
4
- Easy entity and file encryption for Symfony2 .
4
+ Easy entity and file encryption for Symfony .
5
5
6
6
We wanted to be able to store encrypted data in our Symfony2 applications and we realized that there were no simple way
7
7
to do it.
@@ -20,6 +20,35 @@ The main weakness of this system is that the cipher key is stored temporarly in
20
20
overcome this problem would be to use a pretty complex asymmetric encryption system between the client and the server
21
21
which could only be done properly using a rich client.
22
22
23
+ Installation
24
+ ------------
25
+ ``` shell
26
+ composer require cleverage/encryption-bundle
27
+ ```
28
+
29
+
30
+ Usage
31
+ -----
32
+
33
+ ``` php
34
+
35
+ use Doctrine\ORM\Mapping as ORM;class MyEntity {
36
+
37
+ /**
38
+ * @ORM\Column(type="encrypt_string")
39
+ */
40
+ private string $myField;
41
+
42
+ /**
43
+ * @ORM\Column(type="encrypt_text")
44
+ */
45
+ private string $myFieldText;
46
+ }
47
+
48
+ ```
49
+
50
+
51
+
23
52
Helpers
24
53
-------
25
54
This bundle comes with an EncryptionManager class which can be used in standalone to encrypt and decrypt data and files.
You can’t perform that action at this time.
0 commit comments