File tree Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Expand file tree Collapse file tree 1 file changed +0
-31
lines changed Original file line number Diff line number Diff line change @@ -89,34 +89,3 @@ Example
89
89
print("Hang on ... did you say *all* of GnuPG? Yep.")
90
90
else:
91
91
pass
92
-
93
-
94
-
95
- ********
96
- PyCrypto
97
- ********
98
-
99
- `PyCrypto <https://www.dlitz.net/software/pycrypto/ >`_ is another library,
100
- which provides secure hash functions and various encryption algorithms. It
101
- supports Python version 2.1 through 3.3.
102
-
103
- Installation
104
- ~~~~~~~~~~~~
105
-
106
- .. code-block :: console
107
-
108
- $ pip install pycrypto
109
-
110
- Example
111
- ~~~~~~~
112
-
113
- .. code-block :: python
114
-
115
- from Crypto.Cipher import AES
116
- # Encryption
117
- encryption_suite = AES .new(' This is a key123' , AES .MODE_CBC , ' This is an IV456' )
118
- cipher_text = encryption_suite.encrypt(" A really secret message. Not for prying eyes." )
119
-
120
- # Decryption
121
- decryption_suite = AES .new(' This is a key123' , AES .MODE_CBC , ' This is an IV456' )
122
- plain_text = decryption_suite.decrypt(cipher_text)
You can’t perform that action at this time.
0 commit comments