Class ExampleScenario3
Object
ExampleScenario3
Scenario 3 – Streaming Encrypt / Decrypt with AES-256
This example demonstrates how to:
- Load and authenticate CLI credentials (encrypted via PBKDF2‐derived key).
- Generate an
AES-256
symmetric key (kty="oct"
,alg="AES-256"
). - Stream-encrypt a plaintext file using that key.
- Stream-decrypt the resulting ciphertext using the same key.
- Verify that the decrypted plaintext matches the original.
All files are written under the temp_files/
directory.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ExampleScenario3
public ExampleScenario3()
-
-
Method Details
-
main
-