Skip to main content

Hill Cipher (Encryption and Decryption)

Project description

Hill Cipher

The project is about Hill Cipher Encryption and Decryption

It allows to encrypt the text using the Hill Cipher technique, and decryption can be done as well. Checkout the snippets below.

Note : Provide the input in the capital letters.

import hillcipher as hc

key = [[17,17,5],[21,18,21],[2,2,19]]
text = "PAY MORE MONEY"

enc = hc.encrypt(text, key)
dec = hc.decrypt(enc, key)

print(enc, dec)

The $2^{nd}$ parameter (i.e., key) is optional and can be excluded, but ensure that the count of alphabets in the input string are the multiples of 3.

import hillcipher as hc

text = "PAY MORE MONEY"

enc = hc.encrypt(text)
dec = hc.decrypt(enc)

print(enc, dec)

The complete code can be found @ www.github.com/Kirandeep2806/Hill-Cipher

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

hillcipher-0.0.4.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

hillcipher-0.0.4-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

Details for the file hillcipher-0.0.4.tar.gz.

File metadata

  • Download URL: hillcipher-0.0.4.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for hillcipher-0.0.4.tar.gz
Algorithm Hash digest
SHA256 afd030bd5e7c3da98c9ff4b79662194e1e3426c40cf505f0503699a061df102e
MD5 6bfb91cfbcc85d5d0c23241745dc6ba3
BLAKE2b-256 ab354dbe798ef0f97769be4ceb52ac9c7fb30635db6234d33c206d34de60c941

See more details on using hashes here.

File details

Details for the file hillcipher-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: hillcipher-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 2.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.5

File hashes

Hashes for hillcipher-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2700b02f67b139b115b0c6e841f0af27c154b6281747dd8413cc23bc4082d513
MD5 79fb6e3f41b5663a8c0a53cdc5cde1a4
BLAKE2b-256 555d65ecc5057b81d567a71c82cbc82254485d78442a7a4d0d25ee5531a14891

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