mirror of https://github.com/dapr/rust-sdk.git
Update examples/crypto/main.rs
Co-authored-by: Mike Nguyen <hey@mike.ee> Signed-off-by: Zachary K Edgell <zacharyedgell@gmail.com>
This commit is contained in:
parent
b731100560
commit
fb1d6b3018
|
@ -16,7 +16,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
let encrypted = client
|
||||
.encrypt(
|
||||
ReaderStream::new("Test".as_bytes()),
|
||||
EncryptRequestOptions {
|
||||
dapr::client::EncryptRequestOptions {
|
||||
component_name: "localstorage".to_string(),
|
||||
key_name: "rsa-private-key.pem".to_string(),
|
||||
key_wrap_algorithm: "RSA".to_string(),
|
||||
|
@ -31,7 +31,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
let decrypted = client
|
||||
.decrypt(
|
||||
encrypted,
|
||||
DecryptRequestOptions {
|
||||
dapr::client::DecryptRequestOptions {
|
||||
component_name: "localstorage".to_string(),
|
||||
key_name: "rsa-private-key.pem".to_string(),
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue