Skip to main content

Substitution based Cipher to Encrypt/Decrypt by mapping word structure to hindu birth chart houses

Project description

parselcode

The Parselcode package can be used to implement a Cipher technique using custom functions for encyrpting and decrypting ascii characters.

Current Version: 1.0.0

Requires: Python 3.0+

Inspiration

The creation of the package is inspired by mapping the strenghts associated in Hindu birth chart houses with fragments (anu's) of a character. This results in creating a series of integer codes for the given text, character by character. The codes are controlled by random parameters to ensure non-repetition of code for same characters.

Installation

You can install the Parselcode package from PyPI

pip install parselcode

Usage

Import the necessary classes

import parselcode.main as pc

Create a Parselcode object

obj = pc.Cipher()

Encryption

ciphertext = obj.encrypt(plaintext)

Decryption

plaintext = obj.decrypt(ciphertext)

Example

ciphertext = obj.encrypt("test")
for i in ciphertext:
    print(i, end = " ")

0 3 9 8 9 9 12 11 -1 9 8 4 11 6 -1 6 7 10 9 8 -1 5 7 8 8 2 -1 2 7 3 7 0 -2 11 8 5 8 6 1 0 8 4 7 0 0 2 8 3 7 0 -1 6 8 4 7 0 -1 1 9 3 8 8 1 0 9 4 7 1 0 0 9 0 8 2 -1 1 8 11 8 9 -1 0 10 3 8 11 0 9 10 3 7 7 -1 8 9 10 8 10 -1 0 9 10 9 8 -2 11 11 3 9 5 0 6 11 1 8 5 -1 10 10 7 9 3 -1 6 10 7 10 0 -1 5 0 3 5 7 13 9 14 8 -1 8 11 11 13 2 -1 7 11 6 11 6 -1 10 12 3 10 4 0 0 12 10 10 5 0 0 11 9 10 1 0 10 11 5 8 0 -1 6 11 6 8 10 -2 1 11 10 9 7 -2 0 12 10 9 10 0 10 12 8 7 9 -1 8 12 6 8 8 -2 6 12 9 9 6 -2 5 13 11 9 11 0 7 14 0 7 11 -1 8 13 6 8 10 -2 9 13 8 9 9 -2 9 15 0 10 3 0 4 15 1 8 7 -1 11 14 7 8 10 -1 7 14 5 9 7 -1 9 0 3 6 7 7 4 13 6 -1 8 5 6 11 9 -1 5 5 3 9 6 -1 6 6 7 7 9 -1 7 7 10 7 9 -1 6 5 9 8 5 1 3 5 11 6 7 -1 9 5 10 7 7 -2 3 6 0 8 4 -2 2 7 0 8 7 1 5 7 3 6 10 0 0 7 0 8 2 -1 1 7 2 9 0 -1 5 8 3 8 11 1 2 8 6 7 4 -1 9 7 11 8 9 -1 0 8 0 9 8 -1 3 9 5 9 7 0 11 9 5 8 3 0 2 8 10 9 2 0 1 8 10 9 11 0 6 0 3 0 8 8 4 13 4 -1 5 6 10 11 11 -1 10 6 1 10 4 -1 11 5 10 8 10 -1 11 5 7 7 10 0 0 6 6 9 2 1 3 6 1 7 6 0 7 5 11 7 7 0 0 5 11 7 8 -1 11 7 4 9 2 1 1 7 0 7 5 0 0 6 11 8 7 -1 3 7 1 9 4 -1 3 8 3 9 3 0 10 8 0 7 9 -1 11 7 10 9 1 -1 5 7 11 9 10 -1 8 9 2 9 6 0 6 8 11 8 6 -1 11 8 7 9 4 -1 9 8 7 10 0 0 0

print(obj.decrypt(ciphertext))

test

Thank You

If you liked this package, found it useful or have a feedback, I would love to hear your views. Do write me at email.

Created by - Puru Malhotra

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

parselcode-1.0.0.tar.gz (1.1 MB view details)

Uploaded Source

Built Distribution

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

parselcode-1.0.0-py3-none-any.whl (1.1 MB view details)

Uploaded Python 3

File details

Details for the file parselcode-1.0.0.tar.gz.

File metadata

  • Download URL: parselcode-1.0.0.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.9

File hashes

Hashes for parselcode-1.0.0.tar.gz
Algorithm Hash digest
SHA256 0b197af0cb356744dc8082ca35d8815ae86882ffe526d44e46b1a8d18b0a14de
MD5 5ecb2169b882c2f3762148cc552cc885
BLAKE2b-256 e38c356f2063bc97b4786c1ccf4d94c92dd6be806bf04a0367c89041b1465f8c

See more details on using hashes here.

File details

Details for the file parselcode-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: parselcode-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 1.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.5.0 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.9

File hashes

Hashes for parselcode-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e039eb10b94a6fbcbb3aed8348b768db23d2a1b67beb56538d89941f8efe444
MD5 7b90d30d9fd5b1fb93744107ba454660
BLAKE2b-256 341629b418beccaae331104627e31a0bb129a94c6227f3f57e34a7ca8109986d

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