Skip to content

Conversation

@JadeCara
Copy link
Owner

@JadeCara JadeCara commented Dec 5, 2024

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.toml file, a Makefile for build automation, and several Rust source files implementing the cipher functionalities.

New module setup:

  • module2/ciphers/Cargo.toml: Added configuration for the new ciphers package, including dependencies on clap and rand.
  • 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 using clap to allow users to encrypt, decrypt, and analyze messages using the provided cipher functions.

@JadeCara JadeCara merged commit dc559b8 into main Dec 5, 2024
8 checks passed
@JadeCara JadeCara deleted the jade/ciphers branch December 5, 2024 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants