Skip to main content

A simple cryptographic program

Project description

**DISCLAIMER

Program has a zero-division bug that does not allow division if denominator is 0 at any point in a character's encoding by the bi-key, thereby causing a crash.

**END_DISCLAIMER

Automaton that can encrypt messages using a structure comprised of layers centered around a point (centerion).

explanation

FEDS shield is a cipher that stands for Friend/Enemy/Difference/Similarity shield.

FEDS shield consists of n arbitary layers and each of those layers consists of an arbitrary number of integers. Each of those integers is called a "cell". The "flattened" version of the shield (in one dimenion) is an encoding for a particular character.

Behind the FEDS shield structure, found in the file structure.py with accompanying comments, is a structure called a Centerion in the file centerion.py that determines if each of the cells is a friend or an enemy.

FEDS shield can only perform encodings on string messages. Given a string message m, each character a in m will go through a cipher that produces the flattened version of the FEDS shield and a padding consisting of the Centurion's enemies.

Run tests by going into this directory. Then python -m unittest discover tests

emphasis

Not to be thought of as a secure cryptographic protocol due to two reasons:

  1. *.py implementation.
  2. program is a draft;has not demonstrated to work:
    • no proof-of-concept paper
    • no statistical test results included

examples

See the following screenshots for examples:

Encryption example

Decryption example

questions?

For any questions and/or concerns, contact me @ phamrichard45@gmail.com

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

feds_shield-0.0.1.tar.gz (22.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

feds_shield-0.0.1-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

Details for the file feds_shield-0.0.1.tar.gz.

File metadata

  • Download URL: feds_shield-0.0.1.tar.gz
  • Upload date:
  • Size: 22.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for feds_shield-0.0.1.tar.gz
Algorithm Hash digest
SHA256 e30fc2e061394d13afc28ba08202993e5d9f3f6ef05d7caa9acd9519e9841253
MD5 69a948cf651c5470d4797c446a2ff9ef
BLAKE2b-256 791a72ac269ef38da8d15e79d6e27970ca93d6e6ba44259c737666930a7fa32d

See more details on using hashes here.

File details

Details for the file feds_shield-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: feds_shield-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 22.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.0

File hashes

Hashes for feds_shield-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b064c774de4d56829ba8d65074e41a73e9b8cb902a8f54d335eaecfdd80d85da
MD5 d2b7bfb333f397f3570112ad513bc12f
BLAKE2b-256 510fc45d5987460ee4e589b5fd0eb2837419bdf153e6443ccc67c3d60060fe5e

See more details on using hashes here.

Supported by

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