Hectarea Dictionary Encryption
Encryption algorithm by Hectarea and Qrab & Nell, made to securely transmit secret words / short sentences using a key, an IV, and a dictionary of 256 words, representing the 8 bits of a byte.
It returns a natural-language-like sentence made with words from the given dictionary. each representing a byte of the encrypted object.
Installation
pip install HectareaDictionaryEncryption
Basic Example
import HectareaDictionaryEncryption as hdc
# Dictionary with 256 words
dictionary =
['the', 'of', 'to', 'and', 'a', 'in', 'is', 'it', 'you', 'that', 'he', 'was', 'for', 'on', 'are', 'with', 'as', 'I', 'his', 'they', 'be', 'at', 'one', 'have', 'this', 'from', 'or', 'had', 'by', 'not',
'word', 'but', 'what', 'some', 'we', 'can', 'out', 'other', 'were', 'all', 'there', 'when', 'up', 'use', 'your', 'how', 'said', 'an',
'each', 'she', 'which', 'do', 'their', 'time', 'if', 'will', 'way', 'about', 'many', 'then', 'them', 'write', 'would', 'like', 'so', 'these', 'her', 'long', 'make', 'thing', 'see', 'him', 'two', 'has', 'look', 'more', 'day', 'could', 'go', 'come', 'did', 'number', 'sound', 'no', 'most', 'people', 'my', 'over', 'know', 'water', 'than', 'call', 'first', 'who', 'may', 'down', 'side', 'been', 'now', 'find', 'any', 'new', 'work', 'part', 'take', 'get', 'place', 'made',
'live', 'where', 'after', 'back', 'little', 'only', 'round', 'man', 'year', 'came', 'show', 'every', 'good', 'me', 'give', 'our', 'under', 'name', 'very', 'through', 'just', 'form', 'sentence', 'great', 'think', 'say', 'help', 'low', 'line', 'differ', 'turn', 'cause', 'much', 'mean', 'before', 'move', 'right', 'boy', 'old', 'too', 'same', 'tell', 'does', 'set', 'three', 'want', 'air', 'well', 'also', 'play', 'small', 'end', 'put', 'home', 'read', 'hand', 'port', 'large', 'spell', 'add', 'even', 'land', 'here', 'must', 'big', 'high', 'such', 'follow', 'act', 'why', 'ask', 'men', 'change', 'went',
'light', 'kind', 'off', 'need', 'house', 'picture', 'try', 'us', 'again', 'animal', 'point', 'mother', 'world', 'near', 'build', 'self', 'earth', 'father', 'head', 'stand', 'own', 'page', 'should', 'country', 'found', 'answer', 'school', 'grow', 'study', 'still', 'learn', 'plant', 'cover', 'food', 'sun', 'four', 'between', 'state', 'keep', 'eye', 'never', 'last', 'let', 'thought', 'city', 'tree', 'cross', 'farm', 'hard', 'start', 'might', 'story', 'saw', 'far', 'sea', 'draw', 'left', 'late', 'run', "don't", 'while', 'press', 'close', 'night', 'real', 'life', 'few', 'north', 'open', 'seem', 'together', 'next', 'white', 'children']
# Any length encoded password
password = b'any length password'
# Any length IV
iv = b'some random length IV'
# Any length encoded message
message = b'I know what amber heard...'
# Returns a string
encryptedString = hdc.Encrypt(message, iv, password, dictionary)
print("Encrypted String: \n" + encryptedString + "\n")
print("IV: \n" + iv.decode() + "\n\n")
# Returns a bytes object
decryptedString = hdc.Decrypt(encryptedString, iv, password, dictionary)
print("Decrypted String: \n" + decryptedString.decode() + "\n")
Result:
Encrypted String:
last be I said kind new be I side number their point life with a down try live the seem people this out show by we
IV:
some random length IV
Decrypted and Decoded String:
I know what amber heard...
Metadata
Release files for HectareaDictionaryEncryption 4.20.68.9.9.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| HectareaDictionaryEncryption-4.20.68.9.9.9-py3-none-any.whl | Python 3 | none | any | Details |
Release files / HectareaDictionaryEncryption-4.20.68.9.9.9-py3-none-any.whl
| Download URL | HectareaDictionaryEncryption-4.20.68.9.9.9-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b0dff6e3f09e1b46a70fa966faa11b0180dd09c4bc401983583b9b4d6a30fbb6
|
|
BLAKE2b-256 checksum How to use checksums |
5d4f7addb82b2af58f125effcc5aad6ce302c55ef0669f011e597787cb712e74
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.26.0 requests-toolbelt/0.9.1 urllib3/1.26.7 tqdm/4.63.0 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.1
|
Security for HectareaDictionaryEncryption 4.20.68.9.9.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.