A simple implementation of the Hill Cipher encryption and decryption.
Project description
Hill Cipher Library
A Python library for encrypting and decrypting text using the Hill Cipher algorithm.
Installation
pip install .
Usage
import numpy as np
from hill_cipher import hill_encrypt, hill_decrypt
key = np.array([[3, 3], [2, 5]])
plaintext = "HELLO"
ciphertext = hill_encrypt(plaintext, key)
print("Encrypted:", ciphertext)
decrypted = hill_decrypt(ciphertext, key)
print("Decrypted:", decrypted)
License
This project is licensed under the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
hill_cipher_lib-0.1.0.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hill_cipher_lib-0.1.0.tar.gz.
File metadata
- Download URL: hill_cipher_lib-0.1.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3c63438b31001995cbb2ff28c56b7ef91cc75f4ef282bb0d2367e4758b141147
|
|
| MD5 |
a15fe99a4030678156af0d8326c2ceab
|
|
| BLAKE2b-256 |
bb88bd6eafdd9a95a5c1c4b9025769399429fa00a25a7e89c10585cfcf4bf124
|
File details
Details for the file hill_cipher_lib-0.1.0-py3-none-any.whl.
File metadata
- Download URL: hill_cipher_lib-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.11.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
758c1da8b28034e431e31ff7f981bc828e248df0c9d52dff3659eba047b67a93
|
|
| MD5 |
3ce9c7f9ef3306aab4688b876cb6111c
|
|
| BLAKE2b-256 |
28c809483aa88dba3b40ca6f9aa5130d6947cd267434c4fd568f87f246b86732
|