Skip to main content

HectareaDictionaryEncryption

Project description

Hectarea Dictionary Encryption

Encryption algorithm by Hectarea and Qrab & Nell, made to securely transmit messages using a key, an IV, and a dictionary of 256 words, representing the 8 bits of a byte.

It returns a natural-lenguage-lilke sentence made with words of 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... 

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

File details

Details for the file HectareaDictionaryEncryption-4.20.68.9-py3-none-any.whl.

File metadata

  • Download URL: HectareaDictionaryEncryption-4.20.68.9-py3-none-any.whl
  • Upload date:
  • Size: 3.3 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for HectareaDictionaryEncryption-4.20.68.9-py3-none-any.whl
Algorithm Hash digest
SHA256 17202f2db8c9a08980b97fed580cdec1896c8b5c51862aae1ca8eb4048de5da7
MD5 b075d39b677a4d9d800bea653ba52392
BLAKE2b-256 507fe89333db96d964e6092c7380edb7ce1c1470feb2e3065c0bb8145f803e9b

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page