git clone https://github.com/microsoft/vcpkg
cd vcpkg
./bootstrap-vcpkg.bat
./vcpkg integrate install
./vcpkg install openssl:x64-windows
Likely it's in C:\Users\<YourUser>\vcpkg
- Search "Environment Variables" in Windows search
- Under "User variables" click "New"
- Variable name: `VCPKG_ROOT`
- Variable value: Your vcpkg path (e.g. `C:\Users\<YourUser>\vcpkg`)
Likely it's in this folder but it depends where your vcpkg is: C:\Users\<YourUser>\vcpkg\installed\x64-windows\bin\
Add this folder to your PATH
This project is a complete implementation of the RSA encryption algorithm from scratch, without relying on external libraries. The goal is to understand and demonstrate how RSA works, while optimizing for clean, efficient, and modular code.
- RSA Key Generation: Generates secure public and private key pairs.
- Message Encryption: Converts strings into encrypted BigNumbers.
- Message Decryption: Decrypts encrypted BigNumbers back into readable strings.
- Test-Driven Development: Fully tested implementation for reliability.
- Implements the RSA algorithm step-by-step, following efficient, modular techniques.
- Entire workflow for encryption and decryption demonstrated in the
main
function. - Adheres to Google-style coding standards for readability and maintainability.
This implementation is designed for learning, experimentation, and achieving a deeper understanding of RSA. The custom implementation avoids external dependencies for greater efficiency and control.