m6sig / lorenz-cipher-sim Goto Github PK
View Code? Open in Web Editor NEWThis project forked from realgrep/lorenz-cipher-sim
A simulator for the Lorenz Sz40 Cipher Machine written in Python
License: GNU General Public License v3.0
This project forked from realgrep/lorenz-cipher-sim
A simulator for the Lorenz Sz40 Cipher Machine written in Python
License: GNU General Public License v3.0
A fork of https://github.com/RealGrep/lorenz-cipher-sim Now works on Python3 with better command line interface. Reduced numbers of LTRS/FIGS symbol to rise the bar for chosen plaintext attack to the same level as the real machine. Improve wheel generation speed. Randomise wheel indicator numbers. After consulting with the publication BREAKING TELEPRINTER CIPHERS AT BLETCHLEY PARK: An edition of I. J. Good, D. Michie and G. Timms' GENERAL REPORT ON TUNNY WITH EMPHASIS ON STATISTICAL METHODS (1945) Edited and with introductions and notes by James A. Reeds, Whitfield Diffie and J. V. Field, The python code in lorenz-sz40.py matches the cipher machine Lorenz Schlüsselzusatz 40, aka Lorenz Sz40. Usage: $ python3 lorenz-sz40.py [-h] [--keygen <key file>] [--encrypt <input file> <key file> <output file>] [--decrypt <input file> <key file> <output file>] [--readtape <input file>] optional arguments: -h, --help show this help message and exit --keygen <key file> Creates a random key file with normal SZ40 teeth counts and sets random indicators. Edit the file to suit. --encrypt <input file> <key file> <output file> Encode ASCII plaintext to Baudot code (5 bits per byte) and encrypt with wheel settings in key file, writing ciphertext to output file. --decrypt <input file> <key file> <output file> Decrypt the input file with wheel settings in key file, decode from Baudot code and and output ASCII plaintext to output file. --readtape <input file> Read input file in Baudot code and display ASCII equivalent. Example: python3 lorenz.py --keygen <key file> python3 lorenz.py --encrypt <input file> <key file> <output file> python3 lorenz.py --decrypt <input file> <key file> <output file> python3 lorenz.py --readtape <input file>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.