You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this quickstart, you'll create an application that encrypts, and then decrypts, data using the Dapr cryptography APIs (high-level). We will:
4
+
5
+
- Encrypt and then decrypt a short string, reading the result in-memory
6
+
- Encrypt and then decrypt a large file, storing the encrypted and decrypted data to files
7
+
8
+
Visit the documentation to learn more about the [Cryptography building block](https://v1-11.docs.dapr.io/developing-applications/building-blocks/cryptography/) in Dapr.
9
+
10
+
> **Note:** This example uses the Dapr SDK. Using the Dapr SDK, which leverages gRPC internally, is **strongly** recommended when using the high-level cryptography APIs (to encrypt and decrypt messages).
11
+
12
+
This quickstart includes one application:
13
+
14
+
- Python application `crypto-quickstart`
15
+
16
+
### Run Python service with Dapr
17
+
18
+
> In order to run this sample, make sure that OpenSSL is available on your system.
19
+
20
+
1. Navigate into the folder with the source code:
21
+
22
+
<!-- STEP
23
+
name: Navigate into folder
24
+
expected_stdout_lines:
25
+
expected_stderr_lines:
26
+
-->
27
+
28
+
```bash
29
+
cd ./crypto-quickstart
30
+
pip3 install -r requirements.txt
31
+
```
32
+
33
+
<!-- END_STEP -->
34
+
35
+
2. This sample requires a private RSA key and a 256-bit symmetric (AES) key. We will generate them using OpenSSL:
0 commit comments