cryptography-hybrid-encryption.html


* created: 2025-11-30T21:58
* modified: 2025-11-30T22:31

title

Hybrid Encryption

description

Uses both parts symmetric and asymmetric encryption methods. It is based around session keys in addition to public and private keys.

Hybrid Encryption

TODO: Generate a session key, which is used to encrypt messages. Then use the public key of the receiving to entity, to encrypt the session key, and send it along side the encrypted message (asymmetric). The receiving entity can now decrypt the session key, using it's private key, and then decrypt the message using the now decrypted session key. Now both parties have the same key an can decrypt all messages fast and securely (symmetric). This key gets rotated every couple minutes for security reasons.