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.
This pull request adds a new module for implementing various cipher techniques, including Caesar cipher and homophonic cipher, along with a command-line interface (CLI) for encrypting, decrypting, and analyzing messages. The most important changes include the addition of a new
Cargo.tomlfile, aMakefilefor build automation, and several Rust source files implementing the cipher functionalities.New module setup:
module2/ciphers/Cargo.toml: Added configuration for the newcipherspackage, including dependencies onclapandrand.module2/ciphers/Makefile: Added a Makefile to automate common tasks such as building, running, testing, and formatting the project using Cargo.Cipher functionalities:
module2/ciphers/src/lib.rs: Implemented functions for encrypting and decrypting text using the Caesar cipher, as well as generating homophonic ciphers.module2/ciphers/src/decoder_ring.rs: Added functions for statistical analysis of text and guessing the shift for a Caesar cipher based on letter frequency analysis.Command-line interface:
module2/ciphers/src/main.rs: Implemented a CLI usingclapto allow users to encrypt, decrypt, and analyze messages using the provided cipher functions.