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.2.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.2-py3-none-any.whl (22.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: feds_shield-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 aecd800ab2f6a018f3f214665c04259f3240f87b2db401ff9d58b85fa8399de4
MD5 6402cdaf73e4d498814b6a8af122a310
BLAKE2b-256 83c980ba91cb509948d275c8d00310cd2b24a709b91f506157cb8f47c28b4082

See more details on using hashes here.

File details

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

File metadata

  • Download URL: feds_shield-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3a52e0220f5cf1562dde4c4576307c236d1870423816b8ee934b98faa5028025
MD5 d4f31fac8a9b59d39f0fc14ce9e41d95
BLAKE2b-256 13d8e22c9c418e06174d8dcede17fcf82f8746d29b5da3d86bf3396cccb74d0b

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