-
Notifications
You must be signed in to change notification settings - Fork 1
Rewrite Readme #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Rewrite Readme #19
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,23 +1,63 @@ | ||
| # RSA Encryptor | ||
| # RSA | ||
|
|
||
| ## Overview | ||
| RSA is an educational C++20 library for RSA-style encryption and | ||
| decryption primitives. | ||
|
|
||
| **RSA Encryptor** is a simple RSA encryption and decryption library written in C++. It implements its own routines for handling large numbers using base-256 representation and is released under the [AGPL License](https://www.gnu.org/licenses/agpl-3.0.html). | ||
| > [!NOTE] | ||
| > This project uses `clang-format 20` for code formatting and is built and tested on macOS, Windows, and Ubuntu. | ||
| > [!IMPORTANT] | ||
| > This project is experimental and intended for learning/library exploration. | ||
| > The goal is to become production-ready in the future. | ||
|
|
||
| ## License | ||
| ## Features | ||
|
|
||
| RSA Encryptor is distributed under the [AGPL License](https://www.gnu.org/licenses/agpl-3.0.html). See the `LICENSE` file for more details. | ||
| - RSA-style encryption and decryption APIs | ||
| - Public and private key structs with serialization helpers | ||
| - Base64 helper functions for encoded key or byte-vector data | ||
|
|
||
| ## Contact | ||
| ## Integration | ||
|
|
||
| For issues, please open an issue on the GitHub repository or contact the maintainers directly under this email mail@parallelengineering.org. | ||
| Clone the repository with its submodules: | ||
|
|
||
| ## Roadmap | ||
| - [x] Get informed about RSA | ||
| - [x] Write utility functions | ||
| - [x] Add workflows | ||
| - [ ] Implement encryption | ||
| - [ ] Implement decryption | ||
| - [ ] Beautify CLI output | ||
| ```sh | ||
| git clone --recurse-submodules https://github.com/ParallelEngineering/RSA-Encryptor.git | ||
| ``` | ||
|
|
||
| To integrate the library into another CMake project, add this repository as a | ||
| subdirectory and link against the `RSA` target: | ||
|
|
||
| ```cmake | ||
| add_subdirectory(path/to/RSA-Encryptor) | ||
| target_link_libraries(YourTarget PRIVATE RSA) | ||
| ``` | ||
|
Comment on lines
+24
to
+30
|
||
|
|
||
| You can also build the library directly with CMake: | ||
|
|
||
| ```sh | ||
| cmake -S . -B build | ||
| cmake --build build | ||
| ``` | ||
|
|
||
| ## Basic Usage | ||
|
|
||
| ```cpp | ||
| #include "decrypt.h" | ||
| #include "encrypt.h" | ||
| #include "keyPair.h" | ||
|
|
||
| #include <cstdint> | ||
| #include <string> | ||
| #include <vector> | ||
|
|
||
| int main() { | ||
| keyPair keys; | ||
|
|
||
|
|
||
| PublicKey publicKey = keys.getPublicKey(); | ||
| PrivateKey privateKey = keys.getPrivateKey(); | ||
|
|
||
| core::Encryptor encryptor(publicKey); | ||
| core::Decryptor decryptor(privateKey); | ||
|
|
||
| const std::string message = "hello"; | ||
| std::vector<uint8_t> ciphertext = encryptor.encrypt(message); | ||
| std::string plaintext = decryptor.decrypt(ciphertext); | ||
| } | ||
| ``` | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.