Skip to main content

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

Beanory-0.0.5.tar.gz (3.5 kB view hashes)

Uploaded Source

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