Skip to content
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

Add Gronsfeld cipher implementation #11966

Closed
wants to merge 2 commits into from

Conversation

SpandanM110
Copy link

Describe your change:

This pull request adds new functionality to the ciphers/gronsfeld.py file by implementing the Gronsfeld cipher for both encryption and decryption. The main changes include the addition of two functions: gronsfeld_encrypt and gronsfeld_decrypt, along with an example usage section.

New functionality:

  • ciphers/gronsfeld.py: Added the gronsfeld_encrypt function to encrypt plaintext using the Gronsfeld cipher.
  • ciphers/gronsfeld.py: Added the gronsfeld_decrypt function to decrypt ciphertext using the Gronsfeld cipher.

Example usage:

  • ciphers/gronsfeld.py: Included an example usage section to demonstrate how to use the gronsfeld_encrypt and gronsfeld_decrypt functions.
    This commit adds the implementation of the Gronsfeld cipher, which includes functions for encrypting and decrypting messages using a numeric key. The gronsfeld_encrypt function takes a plaintext message and a key as input and returns the encrypted message. The gronsfeld_decrypt function takes a ciphertext message and a key as input and returns the decrypted message. The implementation also includes an example usage section that demonstrates how to encrypt and decrypt a message using the Gronsfeld cipher.

Closes #11835

image

@algorithms-keeper algorithms-keeper bot added the tests are failing Do not merge until tests pass label Oct 11, 2024
@SpandanM110
Copy link
Author

SpandanM110 commented Oct 11, 2024

Contributions for the Hacktoberfest and will be working for other language that is for Javascript as well.

@cclauss
Copy link
Member

cclauss commented Oct 22, 2024

Closing tests_are_failing PRs to prepare for Hacktoberfest

@cclauss cclauss closed this Oct 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests are failing Do not merge until tests pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants