Package that can encrypt messages using various math equations
Project description
Complex Number Encryptor
This package is capable of encoding messages into lists of numbers using algebra and complex numbers
Complex_Number_Encryptor.ComplexNumber
An example of how to use this is as follows:
from Complex_Number_Encryptor.ComplexNumber import Encoder
msg = "Hello World"
Encryption_factors = [(1+1j), (2+2j), (3+3j)]
Encoded_Message = Encoder(msg, Encryption_factors, d=1).enc()
print(Encoded_Message)
The Encoder object requires two things, the first being the string of the message, and the second being the tuple of three numbers which are the encryption factors. There is a third factor 'd', which is also an encryption factor, but is at default 1. A list of complex numbers would be printed and could be reversed in the Decoder object with the same encryption factors.
from Complex_Number_Encryptor.ComplexNumber import Decoder
Input_list = [the, list, recieved, from, the, encoder]
Encryption_factors = [(1+1j), (2+2j), (3+3j)]
Decoded_Message = Decoder(Input_list, Encryption_factors, d=1).dec()
print(Decoded_Message)
This would print out the original message.
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
Built Distribution
Close
Hashes for Complex-Number_Encryptor-Janderion-1.0.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 419d7d15ea35af94e1d3ce7b2c02cc3b200e58b1927a2566813dbb7b110b2e51 |
|
MD5 | 2a8e790449470a203616f05043d0ff0f |
|
BLAKE2b-256 | 8cd2d2a192c370225a1a9b7c2e1923930c64ba167ec905f460865386d184539d |
Close
Hashes for Complex_Number_Encryptor_Janderion-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4cbcb1dd4a63453e7c55b84aab8aa77bfa450f54a1cf4e7b6006782a2a6c193f |
|
MD5 | af085df899d3ae95b24ce333f59d1728 |
|
BLAKE2b-256 | 814a4b9fee0eda38bf04cde72937057510dc63e64695ef10f840455c56fe00eb |