An encryption method
Project description
This packages takes an input of plain text and converts into n-bit binary, and represents each digital logic high or low as the capitalised charater of the word of choice. For example, the text <’A’> is represented as 01000001 in 8 bit binary, given the encryption word is <’beans’> the final encrypted text would look as follows: bEansbeA.
The function is named ‘Beanory’ and takes a miniumum of 2 arguments:
plain_text <str>: the string that will be encrypted word <str>: the word that will replaces the 0s and 1s
There are two other non-postional arguments:
encrypt <bool> default - <True>: True toggles encrytpion, False toggles decryption bit_length <int> default - <8> : bit length of each byte
Change Log
0.0.1 (9/08/2022)
First Release
0.0.2 (9/08/2022)
Mistake fix
0.0.3 (10/08/2022)
Alerts user that encryption keywords with spaces cannot be used
0.0.4 (10/08/2022)
Bug fix
0.0.5 (11/08/2022)
Bug fix (Now allows encryption keywords with lengths bigger than the plain text)
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
File details
Details for the file Beanory-0.0.5.tar.gz
.
File metadata
- Download URL: Beanory-0.0.5.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03dec4eecb92ad5440c86d8e3c5e44542bb7aa8c43cc9ba250c9ff5ad7060371 |
|
MD5 | 19a29f3a7800dcdef3da04146c37b0f6 |
|
BLAKE2b-256 | c2a9cb677343373b1e4b62346d05aa6ee8baaf5acc8f7c800135d77268964539 |