Key exchange
ML-KEM lets two parties agree on a 32-byte shared secret. The sender encapsulates to the recipient's public key; the recipient decapsulates the ciphertext with their private key.
Try a local exchange
Generate a throwaway key pair, encapsulate to it and decapsulate, then compare the two secrets. Nothing leaves this device.
NIST security category 3, FIPS 203
- Sent: ciphertext1,088 B
- Agreed: shared secret32 B
Encapsulate (sender)
Use the recipient's public key to create a ciphertext and a shared secret. Send the ciphertext; keep the secret.
Decapsulate (recipient)
Use your private key to recover the shared secret from a ciphertext you received.
Decapsulation does not tell you who sent the ciphertext, and a shared secret on its own is not file encryption.