We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d61695e commit 73791feCopy full SHA for 73791fe
1 file changed
python/README.rst
@@ -6,18 +6,18 @@ content-encoding <https://tools.ietf.org/html/draft-nottingham-http-encryption-e
6
7
# Use
8
9
-```python
10
-import http_ece
11
-import os, base64
12
-
13
-key = os.urandom(16)
14
-salt = os.urandom(16)
15
-data = os.urandom(100)
16
17
-encrypted = http_ece.encrypt(data, salt=salt, key=key)
18
-decrypted = http_ece.decrypt(encrypted, salt=salt, key=key)
19
-assert data == decrypted
20
-```
+.. code-block:: python
+
+ import http_ece
+ import os, base64
+ key = os.urandom(16)
+ salt = os.urandom(16)
+ data = os.urandom(100)
+ encrypted = http_ece.encrypt(data, salt=salt, key=key)
+ decrypted = http_ece.decrypt(encrypted, salt=salt, key=key)
+ assert data == decrypted
21
22
This also supports the static-ephemeral ECDH mode.
23
0 commit comments