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.6.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.6-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ccipher-0.0.6.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.6.tar.gz
Algorithm Hash digest
SHA256 9ecab19fec4192f2e646d7e83828c5dced542bb24e2cb7c9de3c857c5538329f
MD5 809b17fabe6d9cdceae28e2fa5e79d16
BLAKE2b-256 4c6235065ee9d111730eb67cc51ae89b0aa04b1b44e81165331e8fd88fd9242e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ccipher-0.0.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0c410b8c9411754edbac4431dd187d68cc83847618057d05708068086237bfd5
MD5 7407c93dfcae1c2db8ca1d96050ebcd9
BLAKE2b-256 eefc8038a97349296fdcfa1199a53bbb3b915c58f79496209a019f3b1874df75

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