This is a simple example that demonstrates Dapr's Cryptography capabilities.
Note: Make sure to use latest version of proto bindings.
- To run the example we need to first build the examples using the following command:
cargo build --examples- Generate keys in examples/crypto/keys directory:
mkdir -p keys
# Generate a private RSA key, 4096-bit keys
openssl genpkey -algorithm RSA -pkeyopt rsa_keygen_bits:4096 -out keys/rsa-private-key.pem
# Generate a 256-bit key for AES
openssl rand -out keys/symmetric-key-256 32- Run the multi-app run template:
dapr run -f .- Stop with
ctrl + c