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.2.tar.gz (4.2 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.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for ccipher-0.0.2.tar.gz
Algorithm Hash digest
SHA256 2f764d09d1073a3e0bd41dc31bcc7999f3feb12a88273418322af61710f06462
MD5 86e35c0bf9f6850c1d077de238aeeaca
BLAKE2b-256 9329465cfe9e056ec905ed5168b0b97cee026dab774607a0b5e0c2a0a589a65f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ccipher-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7508b0b3c6c25214aaa263f79e647212b8dd0e34a484086b82dcc82a6adf56d
MD5 21b160a9ab888cb8d40660a36057d6a3
BLAKE2b-256 fc04cfb377ddb9a5065ac4454b391c5d5670b485e0afc45bf4dac5934d11eb58

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