Class ExampleScenario20
java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario20
Scenario 20 – In-Memory Post-Quantum Crypto (Compact JWE/JWS)
This scenario performs an entirely file-less encryption ➜ decryption and signing ➜ verification cycle with post-quantum algorithms:
- Generate an HQC-128 key for encryption and decryption.
- Generate an SLH-DSA-SHA2-128S key for signing and verification.
- Encrypt a UTF-8 message into a Compact JWE token and decrypt it back to bytes.
- Sign the same bytes, producing a Compact JWS token, and verify that signature.
All artefacts remain in memory; nothing touches the disk.
- Since:
- 2.1.0
- Author:
- ANKATech – Security Engineering
-
Method Summary
-
Method Details
-
main
Entry-point.
-