Class ExampleScenario16

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

public final class ExampleScenario16 extends Object

Scenario 16 – Utility-Stream Encryption (ML-KEM-1024)

This scenario shows how to encrypt data with a public-only ML-KEM-1024 key via the utility-stream API, producing a detached JWE. The private key never touches the client.

  1. Generate an ML-KEM-1024 key.
  2. Export its metadata (extract the Base64-encoded public key).
  3. Encrypt a file using only that public key.
Since:
2.1.0
Author:
ANKATech – Security Engineering
  • Method Details

    • main

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