Skip to main content

A simple cryptographic program

Project description

UPDATE: 05/22/2025 Uploaded this project to pypi.org. Program is now installable by
pip install feds_shield. Here is an important technical detail to keep in mind when using the package installed from pypi.

The program feds_shield requires a folder data to store relevant data related to its encryption/decryption process. So a user that wants to include feds_shield in their program,

from feds_shield import *,

needs to be in a directory that has the folder data. For example, if a user is in the directory ass/cock, there should be a folder with the path ass/cock/data. For simplicity, the user should copy and paste the files from the data folder of this Github repository into their own.

NOTE: bug has been fixed. 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

Description

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.3.tar.gz (23.4 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.3-py3-none-any.whl (23.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: feds_shield-0.0.3.tar.gz
  • Upload date:
  • Size: 23.4 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.3.tar.gz
Algorithm Hash digest
SHA256 23f3b7a67a15ca947c9478b2f6be5cb89141d2d9edd7c16efce71f3fb7a9ed86
MD5 21237fda25e5ade34d846e3f77896482
BLAKE2b-256 a3498306cdd08fc0fc130840e865ae342adc5e155a05bdb31711013782bfaaa0

See more details on using hashes here.

File details

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

File metadata

  • Download URL: feds_shield-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 23.1 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7e5f4f5cf66655bcc4e3deabf254dec1d1d5059815314a5cf39de1667e2563c8
MD5 cd9ada7283ae6abea8ca9326218274b1
BLAKE2b-256 268ab551534bee30cce1c1d01e16f1d69906ee23f8c38ccba1a1b257b2d1d052

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