Developer: Brian Lorick
Organization: No/Label Security Services & Solutions
Version: 1.0.0
License: MIT License
RSAxor is an educational C program that demonstrates the basic concept of hybrid encryption โ combining RSA asymmetric encryption for key exchange and a simple XOR-based symmetric encryption (AES-like) for data protection.
This simulation works in any standard C compiler, including OnlineGDB, and does not require OpenSSL or any external libraries.
โ ๏ธ Disclaimer: This tool is for educational purposes only and is not suitable for real cryptographic use.
Hybrid encryption systems use both:
- Asymmetric encryption (RSA) โ for securely exchanging a key.
- Symmetric encryption (AES/XOR) โ for encrypting actual data efficiently.
RSAxor simulates this process:
- RSA is used to encrypt a symmetric "AES" key.
- The "AES" encryption is performed using XOR operations.
- ๐ข RSA key generation (p, q, e, d) using modular arithmetic
- ๐ XOR-based symmetric cipher (AES-like simulation)
- ๐งฎ Modular exponentiation implementation for RSA math
- ๐ฌ Interactive input/output for plaintext entry and encryption results
- ๐ Fully commented C source code for educational study
make rungcc -Wall -Iinclude src/main.c -o build/RSAxor
./build/RSAxorRSA Parameters:
p = 61, q = 53
n = 3233, phi = 3120
e = 17, d = 2753
Enter plaintext message: hello
AES Encrypted (XOR) Ciphertext: 03 0E 07 07 04
RSA Encrypted AES Key: 2496
RSA Decrypted AES Key: K
Decrypted Text: hello
RSAxor/
โโโ src/ โ source files (main.c)
โโโ include/ โ header files (optional)
โโโ build/ โ compiled output
โโโ tests/ โ test files
โโโ Makefile โ build system
โโโ README.md โ documentation
โโโ LICENSE โ MIT license
โโโ .gitignore โ ignore build artifacts
- This project is designed to illustrate encryption concepts in a readable, portable C implementation.
- All cryptographic steps are simplified for educational clarity, not for security.
- Easily extendable for experimenting with other algorithms.
This project is licensed under the MIT License.
ยฉ 2025 Brian Lorick โ No/Label Security Services & Solutions