Skip to main content

A simple cipher

Project description

SimpleCipher

A simple cipher.

Install

python3 -m pip install simplecipher

Dependencies

In terms of dependencies, there are no dependencies.

Usage

Supported ciphers:

  • Caesar cipher
  • Vigenere cipher
  • Custom cipher

Example:

from simplecipher import simplecipher as sc

message = 'Hello, World!'

offset = 10
encrypted_message = sc.CaesarCipher.encrypt(message, offset=offset)
decrypted_message = sc.CaesarCipher.decrypt(encrypted_message, offset=offset)

key = 'vigenere_key'
encrypted_message = sc.VigenereCipher.encrypt(message, key=key)
decrypted_message = sc.VigenereCipher.decrypt(encrypted_message, key=key)

cipher = sc.SimpleCipher()
replacement = '?' # replacement for unsupported characters
encrypted_message = cipher.encrypt(message, replacement=replacement)
decrypted_message = cipher.decrypt(encrypted_message)

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

simplecipher-0.2.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

simplecipher-0.2.2-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file simplecipher-0.2.2.tar.gz.

File metadata

  • Download URL: simplecipher-0.2.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.7.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9

File hashes

Hashes for simplecipher-0.2.2.tar.gz
Algorithm Hash digest
SHA256 ca9f8ea2ad8caba314141f8d4c3648df1eeef5f68b7d95f1bd1c286725b7dcba
MD5 14238b05a94f8108e16b353fde83f2fc
BLAKE2b-256 d980b122bc9f013441f46bf56279f8d97bdf4a44dcab13b4e628f06086dd5ff5

See more details on using hashes here.

File details

Details for the file simplecipher-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: simplecipher-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/3.7.0 pkginfo/1.8.2 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.9

File hashes

Hashes for simplecipher-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dfcfbcd5b31f8cb653127c2d321866e0e48ad7481babd331d873a94de27d8902
MD5 7e9c1e6613a9a75d0413c1af5617cfc3
BLAKE2b-256 4f9fb5c2f28e203ac4ad916cd573173b068919e2174cea8fd15fef6ad38378d7

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