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.1.tar.gz (4.7 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.1-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ccipher-0.0.1.tar.gz
  • Upload date:
  • Size: 4.7 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.1.tar.gz
Algorithm Hash digest
SHA256 ac17ebc99755cce96505d3911e7385b6ce134cf843674ea711215c7efa0bbea8
MD5 4c2148cce619707bdf58fc39901fd115
BLAKE2b-256 1235d4d1851306fceab359c26a4067be4b4195b56ec22e2ffea1faed72d06113

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ccipher-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.3 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe94833b46f236393e4dbd57fe299df796ea9e44eaa2cf96548d2485f14c86e3
MD5 2333ba69508bcbe5cb9dfcae99043d10
BLAKE2b-256 b739f68e1eddeadf309eb74b3d16021252b369f569b4a6e68dd219af4f34d9cf

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