A package to encrypt and decrypt messages usign Caesar cipher
Project description
Caesar Cipher
The Caesar cipher is a simple encryption technique that shifts each letter in a message by a fixed number of positions down the alphabet. This package provides a Python implementation of the Caesar cipher for encrypting messages with a key.
Installation
To install the package, run:
pip install ccipher
Usage
To use the Caesar cipher to encrypt a message, import the ccipher module and call the encrypt function with the message and the key as arguments:
from ccipher import encrypt
message = "hello world"
key = 3
encrypted_message = encrypt(message, key)
print(encrypted_message)
This will output the encrypted message "khoor zruog".
To decrypt a message that has been encrypted with the Caesar cipher, call the decrypt function with the encrypted message and the key as arguments:
from ccipher import decrypt
encrypted_message = "khoor zruog"
key = 3
decrypted_message = decrypt(encrypted_message, key)
print(decrypted_message)
This will output the original message "hello world".
Contributing
If you find a bug or have a feature request, please create an issue on the GitHub repository. Pull requests are also welcome!
License
This package is licensed under the MIT license. See the LICENSE file for more information.
Of course, feel free to modify and customize the README file to better suit your package and its features.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ccipher-0.0.3.tar.gz.
File metadata
- Download URL: ccipher-0.0.3.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2917107a1f5ad5bb173b4f8ee20954c29adf8e802d33aac9f0d4bbd87bfb9db6
|
|
| MD5 |
4503e117743ab9ef4fda814281f488c1
|
|
| BLAKE2b-256 |
41c22fb76ec95d72adc0a1a3b27492aa963ae8889f2e3dc6d4e5f9b2502ba6e6
|
File details
Details for the file ccipher-0.0.3-py3-none-any.whl.
File metadata
- Download URL: ccipher-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba6fd5119a5dbcaed7633c8c0be902a01845253209b1f292550c2b2e7fb841db
|
|
| MD5 |
adb6eec8a780fdda6bc08ece80d24eff
|
|
| BLAKE2b-256 |
9289a0340614d67871f53f10e7c7803ce22ba25f44c10a7960a9e3c7dd7f2e7a
|