ViginereBreaker
Description
This package implements a viginere breaker.
Requirements
This package require :
- python3
- python3 Standard Library
Installation
pip install ViginereBreaker
Usages
Command line
Module
python3 -m ViginereBreaker cipher.txt
Python executable
python3 ViginereBreaker.pyz cipher.txt
Command
Basic
ViginereBreaker cipher.txt
ViginereBreaker cipher.txt -k 4 -a "ABCDEFGHIJKLMNOPQRSTUVWXYZ" -s "{\"E\":10,\"A\":7}"
Python script
from ViginereBreaker import ViginereBreaker
from codecs import encode
text=encode("""
Llanfairpwllgwyngyllgogerychwyrndrobwllllantysiliogogogoch
antidisestablishmentarianism
counterimmunoelectrophoresis
oesophagogastroduodenoscopy
ethylenediaminetetraacetate
hexadecyltrimethylammonium
diisopropylfluorophosphate
ethylenediaminetetraacetic
uvulopalatopharyngoplasty
great-great-granddaughter
styrene-butadiene-styrene
cholangiopancreatography
tetracyanoquinodimethane
oligodeoxyribonucleotide
phosphatidylethanolamine
proto-industrialization
hypergammaglobulinaemia
politico-administrative
intracerebroventricular
pancreaticoduodenectomy
electro-encephalography
electroencephalographic
polytetrafluoroethylene
lysophosphatidylcholine
first-come-first-served
""", 'rot_13').upper() # rot_13 -> key="N"
breaker = ViginereBreaker(text, statistics={"E": 11, "A": 9})
print(breaker.breaker())
# {1: [['N']], 2: [['N'], ['N']], 4: [['N'], ['N'], ['N'], ['N']]}
# ViginereBreaker try to find a key with multiple key lengths
# The ciphertext with the key 'N' or 'NN' or 'NNNN' is identical
Example
Using CustomCrypto:
Links
Licence
Licensed under the GPL, version 3.
Metadata
Release files for ViginereBreaker 0.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ViginereBreaker-0.0.3.tar.gz | 31.3 kB | Without provenance | Details for ViginereBreaker-0.0.3.tar.gz |
Release files / ViginereBreaker-0.0.3.tar.gz
| Download URL | ViginereBreaker-0.0.3.tar.gz |
|---|---|
| Size | 31.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c7ffb14f69cf420bb9818d626ef05f50a4e5dc6fbd5998ce140ebe3853964a34
|
|
BLAKE2b-256 checksum How to use checksums |
b757bbb225dc19e02cee0d05923531f91b320f755885514d2885bc383b69a64e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/58.2.0 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.7
|
Security for ViginereBreaker 0.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.