CNS โ€ข ALA 1

Secure Messaging

AES + RSA Hybrid Encryption Demonstration

Present By Vivek Boricha
AES-256-GCMRSA-OAEPWeb Crypto API

01 ยท Enter Message

The sender enters a plaintext message and encrypts it using AES-256-GCM.

Preparing RSA-2048 key pair...

02 ยท AES Encrypted Message

Copy this complete value and paste it into the Decryption page.

AES OUTPUT
Waiting for encryption...

03 ยท RSA Encrypted AES Key

Copy this key and paste it into the Decryption page.

RSA OUTPUT
Waiting for encryption...
04 ยท Transmit
1
Copy AES Encrypted MessageUse the button inside the AES output box.
โ†’
2
Copy RSA Encrypted AES KeyUse the button inside the RSA output box.
โ†’
3
Open DecryptionPaste both values manually.

01 ยท Recipient Decryption

Manually paste the encrypted values received from the sender.

No decrypted message yet.
RSA private key is kept in this browser session for the demonstration.

How Hybrid Encryption Works

1. AES EncryptionA random AES-256 key encrypts the message with AES-GCM.
2. RSA ProtectionThe recipient's RSA public key encrypts the AES key.
3. Manual TransmissionSender copies the ciphertext and protected AES key to the recipient.
4. DecryptionRecipient pastes both values, RSA recovers the AES key, then AES decrypts the message.