Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Crypto Example

This is a simple example that demonstrates Dapr's Cryptography capabilities.

Note: Make sure to use latest version of proto bindings.

Running

  1. To run the example we need to first build the examples using the following command:
cargo build --examples
  1. 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
  1. Run the multi-app run template:
dapr run -f .
  1. Stop with ctrl + c