From 1b1a3c261dc62c0e62e6c71a6b38b5fe4cacbe36 Mon Sep 17 00:00:00 2001 From: s2224834 <46319860+s2224834@users.noreply.github.com> Date: Fri, 4 Jan 2019 13:21:15 +0000 Subject: [PATCH] Typex: random rotors --- src/core/lib/Typex.mjs | 25 ++++++++++++++++--------- src/core/operations/Typex.mjs | 2 +- 2 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/core/lib/Typex.mjs b/src/core/lib/Typex.mjs index a99f3b6e..df6e646b 100644 --- a/src/core/lib/Typex.mjs +++ b/src/core/lib/Typex.mjs @@ -9,19 +9,26 @@ import OperationError from "../errors/OperationError"; import * as Enigma from "../lib/Enigma"; import Utils from "../Utils"; +/** + * A set of example Typex rotors. No Typex rotor wirings are publicly available, so these are + * randomised. + */ export const ROTORS = [ - {name: "1", value: "QWECYJIBFKMLTVZPOHUDGNRSXA