Skip to main content

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

ccipher-0.0.5.tar.gz (4.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ccipher-0.0.5-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file ccipher-0.0.5.tar.gz.

File metadata

  • Download URL: ccipher-0.0.5.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.6

File hashes

Hashes for ccipher-0.0.5.tar.gz
Algorithm Hash digest
SHA256 59bc6a0fee64e9402cb5b026308f7838179e70594fbb203a17754719a8221bcf
MD5 2935ce89e6f11d15b0581cea617a8cdc
BLAKE2b-256 fd12039d9e46d3343d1a5d86d2a1a314a71cabb79e00a0e5c7100bf69fa4a22d

See more details on using hashes here.

File details

Details for the file ccipher-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: ccipher-0.0.5-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

Hashes for ccipher-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6597ef14d27c718abc3bf34415123708b5d23985723183949ba864ac33442733
MD5 7affd11721ef3f4287da4c90c76ad432
BLAKE2b-256 4b09392d8da9ba6d6b1f13f7d808de0c85bef80d5f5f52b6571793e03a5506dc

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page