Class ExampleScenario20

java.lang.Object
co.ankatech.ankasecure.sdk.examples.ExampleScenario20

public final class ExampleScenario20 extends Object

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:

  1. Generate an HQC-128 key for encryption and decryption.
  2. Generate an SLH-DSA-SHA2-128S key for signing and verification.
  3. Encrypt a UTF-8 message into a Compact JWE token and decrypt it back to bytes.
  4. 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 Details

    • main

      public static void main(String[] args)
      Entry-point.