Class ExampleScenario1

Object
ExampleScenario1

public class ExampleScenario1 extends Object
Scenario 1 Example

Demonstrates a full post-quantum lifecycle using AnkaSecureSdk:

  1. Generate ML-KEM key pair.
  2. Export key metadata to JSON.
  3. Stream-encrypt a plaintext file.
  4. Stream-decrypt the ciphertext.
  5. Validate that the decrypted text matches the original.

The CLI must be initialised with encrypted credentials; otherwise this scenario aborts at start-up.

  • Constructor Details

    • ExampleScenario1

      public ExampleScenario1()
  • Method Details

    • main

      public static void main(String[] args)
      Entry-point for Scenario 1.
      Parameters:
      args - unused