Class ExampleScenario13

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

public final class ExampleScenario13 extends Object

Scenario 13 – Legacy RSA-2048 ➜ ML-KEM-768 Migration (Server-Side Re-encryption)

This end-to-end scenario demonstrates how to seamlessly migrate a legacy RSA-encrypted payload to a post-quantum ML-KEM-768 ciphertext, using ANKASecure’s streaming re-encryption API. At no point is the plaintext exposed outside the platform.

*Workflow*

  1. Generate a self-signed RSA-2048 .p12 locally.
  2. Import the PKCS#12 as a decrypt-only key.
  3. Encrypt a file with the exported RSA public key (utility helper).
  4. Create an ML-KEM-768 key.
  5. Server-side streaming re-encrypt (RSA ➜ KEM).
  6. Stream-decrypt the ML-KEM ciphertext.
  7. Validate integrity.
Since:
2.1.0
Author:
ANKATech – Security Engineering
  • Method Details

    • main

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