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.
Metadata
Release files for ccipher 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ccipher-0.0.7.tar.gz | 4.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ccipher-0.0.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.0 kB
Release files / ccipher-0.0.7.tar.gz
| Download URL | ccipher-0.0.7.tar.gz |
|---|---|
| Size | 4.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb72eddce3af76fd6228aded12d70a54a90a8922e6de5553447b1416106fad01
|
|
BLAKE2b-256 checksum How to use checksums |
7b9ba86b7e95c3988631454bf36c902cc1e4f17e67450c2f3f708160d5c83b53
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|
Release files / ccipher-0.0.7-py3-none-any.whl
| Download URL | ccipher-0.0.7-py3-none-any.whl |
|---|---|
| Size | 5.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
03e5afa342310fe61677b672f630b5e38866c70550226435763c7278f33f0af9
|
|
BLAKE2b-256 checksum How to use checksums |
b6f97555a1fe40f0a85cc58bfae4aab535d759074df2c91996b9f1e5f8f4f26f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.6
|