From b2a9bb0194ad7f1fe57ec113229cbe6c1a4d0f46 Mon Sep 17 00:00:00 2001 From: malonehunter Date: Tue, 10 Oct 2023 10:01:37 -0400 Subject: [PATCH] fixing auto loading theme bugs and moving db and theme config to index.html --- README.md | 4 +- calc/calc.js | 2 +- calc/ciphers.js | 38 -- calc/export-csv.js | 7 +- calc/init-variables.js | 32 +- index.html | 20 +- theme/default-interface.js | 884 ------------------------------------- 7 files changed, 40 insertions(+), 947 deletions(-) delete mode 100644 theme/default-interface.js diff --git a/README.md b/README.md index 92e5d88..c2f3d9d 100644 --- a/README.md +++ b/README.md @@ -53,9 +53,7 @@ If you are not interested in using this tool offline or self-hosting and just wa There are 10 themes packaged with Hyperdope Gematria: black, blue, green, green alt, red charcoal, teal, white, and old book (normal, bright, and dim). -The blue theme is set to default and has been copied into theme/default-interface.js. To change the theme, rename default-interface.js to something like default-interface-backup.js, make a copy of your desired theme and rename that file to default-interface.js. - -> NOTE: The selected theme is the primary configuration file for the calculator, replacing ciphers.js. If you want to change the cypher list or any of the default options you must edit the theme file. +To enable a theme, uncomment the 'AUTO LOAD THEME' script at the bottom of index.html and change the reference to any of the files in the /theme folder. ## Contributing diff --git a/calc/calc.js b/calc/calc.js index ba9668f..559b868 100644 --- a/calc/calc.js +++ b/calc/calc.js @@ -22,7 +22,7 @@ var dateCalcMenuOpened = false // date calculator menu state var encodingMenuOpened = false // encoding menu state var enabledCiphCount = 0 // number of enabled ciphers -var optShowExtraCiphers = false // enable extra ciphers +var optShowExtraCiphers = true // enable extra ciphers // Cipher colors var origColors = [] // preserve original cipher colors diff --git a/calc/ciphers.js b/calc/ciphers.js index 357bdb6..93d4708 100644 --- a/calc/ciphers.js +++ b/calc/ciphers.js @@ -1,5 +1,4 @@ // ciphers.js -// IMPORTANT NOTE: This file is bypassed when automatically loading a theme. Edit default-interface.js in the theme folder instead. /* new cipher( @@ -14,43 +13,6 @@ new cipher( ) */ -calcOptions = [ - "optNumCalcMethod = 1", - "optFiltCrossCipherMatch = true", - "optFiltSameCipherMatch = false", - "optShowOnlyMatching = false", - "optNewPhrasesGoFirst = false", - "optShowExtraCiphers = true", - "optAllowPhraseComments = true", - "liveDatabaseMode = true", - "optLetterWordCount = true", - "optWordBreakdown = true", - "optCompactBreakdown = true", - "optShowCipherChart = true", - "optGradientCharts = false", - "optLoadUserHistCiphers = true", - "optMatrixCodeRain = true", - "interfaceHue = 222", - "interfaceSat = 2", - "interfaceLit = 0.6", - "fontHue = 200", - "fontSat = 1", - "fontLit = 0.9", - "coderainHue = 222", - "coderainSat = 0.4", - "coderainLit = 0.19", - "optPhraseLimit = 5", - "dbPageItems = 15", - "dbScrollItems = 1", - "optForceTwoColumnLayout = false", - "optColoredCiphers = true", - "optGemSubstitutionMode = true", - "optGemMultCharPos = false", - "optGemMultCharPosReverse = false", - "encDefAlphArr = 'abcdefghijklmnopqrstuvwxyz'", - "encDefVowArr = 'aeiouy'", - "encDefExcLetArr = 'qzjx'" -] cipherList = [ new cipher( "Standard", diff --git a/calc/export-csv.js b/calc/export-csv.js index a3e026e..c3434d3 100644 --- a/calc/export-csv.js +++ b/calc/export-csv.js @@ -103,7 +103,12 @@ function importFileAction(file, hasLocalFile) { cipherList.push(eval("new cipher("+ciph[n].slice(1,-1)+")")) // remove parethesis, evaluate string as javascript code } document.getElementById("calcOptionsPanel").innerHTML = "" // clear menu panel - initCalc() // reinit + if(hasLocalFile){ + // initCalc() // reinit. This seems to add duplicate menu options when loading a theme and so this call has been disabled. + } else { + initCalc() // reinit. + } + updateTables() // update tables updateInterfaceColor(true) // update interface color (first run) if (userDBlive.length !== 0) { // restore controls if live database is loaded diff --git a/calc/init-variables.js b/calc/init-variables.js index b30e57e..6b7f8f3 100644 --- a/calc/init-variables.js +++ b/calc/init-variables.js @@ -264,6 +264,17 @@ $(document).ready(function(){ // ================================================================== // export.js +function loadFile(filePath) { + var result = null; + var xmlhttp = new XMLHttpRequest(); + xmlhttp.open("GET", filePath, false); + xmlhttp.send(); + if (xmlhttp.status==200) { + result = xmlhttp.responseText; + } + return result; + } + $(document).ready(function(){ $("body").on("click", "#btn-print-cipher-png", function () { // for future elements @@ -330,24 +341,9 @@ $(document).ready(function(){ openImageWindow(".numPropTooltip", fileName, optImageScale); }); - function loadFile(filePath) { - var result = null; - var xmlhttp = new XMLHttpRequest(); - xmlhttp.open("GET", filePath, false); - xmlhttp.send(); - if (xmlhttp.status==200) { - result = xmlhttp.responseText; - } - return result; - } - - //Autoload DB - var file = loadFile('db.txt'); - importFileAction(file, true); - - //Autoload Theme - var file = loadFile('theme/default-interface.js'); - importFileAction(file, true); + // //Autoload DB function has moved to index.html for easy editing + // var file = loadFile('db.txt'); + // importFileAction(file, true); $("body").on("change", "#importFileDummy", function(){ var file = document.querySelector("#importFileDummy").files[0]; diff --git a/index.html b/index.html index 725d26b..e8dff9e 100644 --- a/index.html +++ b/index.html @@ -30,7 +30,7 @@ $(window).load(function(){ - +
@@ -58,7 +58,7 @@ $(window).load(function(){
- +
@@ -96,4 +96,20 @@ $(window).load(function(){ + + + + + + + + + + \ No newline at end of file diff --git a/theme/default-interface.js b/theme/default-interface.js deleted file mode 100644 index 4f1f5a8..0000000 --- a/theme/default-interface.js +++ /dev/null @@ -1,884 +0,0 @@ -// ciphers.js - -/* -new cipher( - "English Ordinal", // cipher name - "English", // category - 120, 57, 36, // hue, saturation, lightness - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], // lowercase characters - [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], // values - true, // characters with diacritic marks have the same value as regular ones, default is "true" - true // enabled state, default is "false" - false // case sensitive cipher, default is "false" -) -*/ - -calcOptions = [ - "optNumCalcMethod = 1", - "optFiltCrossCipherMatch = true", - "optFiltSameCipherMatch = false", - "optShowOnlyMatching = false", - "optNewPhrasesGoFirst = false", - "optShowExtraCiphers = true", - "optAllowPhraseComments = true", - "liveDatabaseMode = true", - "optLetterWordCount = true", - "optWordBreakdown = true", - "optCompactBreakdown = true", - "optShowCipherChart = true", - "optGradientCharts = false", - "optLoadUserHistCiphers = true", - "optMatrixCodeRain = true", - "interfaceHue = 222", - "interfaceSat = 2", - "interfaceLit = 0.6", - "fontHue = 200", - "fontSat = 1", - "fontLit = 0.9", - "coderainHue = 222", - "coderainSat = 0.4", - "coderainLit = 0.19", - "optPhraseLimit = 5", - "dbPageItems = 15", - "dbScrollItems = 1", - "optForceTwoColumnLayout = false", - "optColoredCiphers = true", - "optGemSubstitutionMode = true", - "optGemMultCharPos = false", - "optGemMultCharPosReverse = false", - "encDefAlphArr = 'abcdefghijklmnopqrstuvwxyz'", - "encDefVowArr = 'aeiouy'", - "encDefExcLetArr = 'qzjx'" -] -cipherList = [ - new cipher( - "Standard", - "English", - 50, 78, 63, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100,200,300,400,500,600,700,800], - true, - false, - false - ), - new cipher( - "Ordinal", - "English", - 120, 65, 62, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], - true, - true, - false - ), - new cipher( - "Reduction", - "English", - 216, 95, 73, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8], - true, - true, - false - ), - new cipher( - "Single Reduction", - "English", - 219, 61, 72, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,10,2,3,4,5,6,7,8], - true, - false, - false - ), - new cipher( - "KV Exception", - "English", - 200, 77, 63, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,1,11,3,4,5,6,7,8,9,1,2,3,22,5,6,7,8], - true, - false, - false - ), - new cipher( - "SKV Exception", - "English", - 204, 79, 64, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,1,11,3,4,5,6,7,8,9,10,2,3,22,5,6,7,8], - true, - false, - false - ), - new cipher( - "Capitals Added", - "English", - 94, 88, 63, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90], - [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52], - true, - false, - true - ), - new cipher( - "Capitals Mixed", - "English", - 117, 42, 54, - [65,97,66,98,67,99,68,100,69,101,70,102,71,103,72,104,73,105,74,106,75,107,76,108,77,109,78,110,79,111,80,112,81,113,82,114,83,115,84,116,85,117,86,118,87,119,88,120,89,121,90,122], - [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52], - true, - false, - true - ), - new cipher( - "Satanic Gematria", - "English", - 350, 55, 61, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61], - true, - false, - false - ), - new cipher( - "Reverse Standard", - "Reverse", - 48, 49, 72, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1], - true, - false, - false - ), - new cipher( - "Reverse Ordinal", - "Reverse", - 146, 74, 50, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1], - true, - true, - false - ), - new cipher( - "Reverse Reduction", - "Reverse", - 180, 60, 69, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1], - true, - true, - false - ), - new cipher( - "Reverse Single Reduction", - "Reverse", - 176, 60, 62, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [8,7,6,5,4,3,2,10,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1], - true, - false, - false - ), - new cipher( - "EP Exception", - "Reverse", - 165, 40, 56, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [8,7,6,5,22,3,2,1,9,8,7,6,5,4,3,11,1,9,8,7,6,5,4,3,2,1], - true, - false, - false - ), - new cipher( - "EHP Exception", - "Reverse", - 144, 21, 54, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [8,7,6,5,22,3,2,10,9,8,7,6,5,4,3,11,1,9,8,7,6,5,4,3,2,1], - true, - false, - false - ), - new cipher( - "Reverse Caps Added", - "Reverse", - 93, 100, 67, - [65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [52,51,50,49,48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1], - true, - false, - true - ), - new cipher( - "Reverse Caps Mixed", - "Reverse", - 127, 40, 60, - [97,65,98,66,99,67,100,68,101,69,102,70,103,71,104,72,105,73,106,74,107,75,108,76,109,77,110,78,111,79,112,80,113,81,114,82,115,83,116,84,117,85,118,86,119,87,120,88,121,89,122,90], - [52,51,50,49,48,47,46,45,44,43,42,41,40,39,38,37,36,35,34,33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1], - true, - false, - true - ), - new cipher( - "Reverse Satanic", - "Reverse", - 350, 55, 69, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [61,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,45,44,43,42,41,40,39,38,37,36], - true, - false, - false - ), - new cipher( - "Bacon Simple", - "Baconian", - 120, 65, 62, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,9,10,11,12,13,14,15,16,17,18,19,20,20,21,22,23,24], - true, - false, - false - ), - new cipher( - "Bacon Reverse", - "Baconian", - 146, 74, 50, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [24,23,22,21,20,19,18,17,16,16,15,14,13,12,11,10,9,8,7,6,5,5,4,3,2,1], - true, - false, - false - ), - new cipher( - "Bacon Short", - "Baconian", - 180, 60, 69, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,9,1,2,3,4,5,6,7,8,9,1,2,2,3,4,5,6], - true, - false, - false - ), - new cipher( - "Bacon R Short", - "Baconian", - 207, 77, 64, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [6,5,4,3,2,1,9,8,7,7,6,5,4,3,2,1,9,8,7,6,5,5,4,3,2,1], - true, - false, - false - ), - new cipher( - "Bacon Kaye", - "Baconian", - 0, 65, 66, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [27,28,29,30,31,32,33,34,35,35,10,11,12,13,14,15,16,17,18,19,20,20,21,22,23,24], - true, - false, - false - ), - new cipher( - "Modern Kaye", - "Baconian", - 352, 61, 78, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [27,28,29,30,31,32,33,34,35,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], - true, - false, - false - ), - new cipher( - "Illuminati Novice", - "Illuminati", - 33, 91, 58, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [12,11,10,9,8,7,6,5,4,4,3,2,1,13,14,15,16,17,18,19,20,20,21,22,23,24], - true, - false, - false - ), - new cipher( - "Illuminati Reverse", - "Illuminati", - 60, 53, 62, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [24,23,22,21,20,19,18,17,16,16,15,14,13,1,2,3,4,5,6,7,8,8,9,10,11,12], - true, - false, - false - ), - new cipher( - "Latin", - "Latin", - 260, 100, 70, - [97,98,99,100,101,102,103,104,105,107,108,109,110,111,112,113,114,115,116,117,120,121,122,106,118,119], - [1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100,200,300,400,500,600,700,900], - true, - false, - false - ), - new cipher( - "Latin Ordinal", - "Latin", - 259, 65, 68, - [97,98,99,100,101,102,103,104,105,107,108,109,110,111,112,113,114,115,116,117,120,121,122,106,118,119], - [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,27], - true, - false, - false - ), - new cipher( - "Latin Reduction", - "Latin", - 277, 46, 58, - [97,98,99,100,101,102,103,104,105,107,108,109,110,111,112,113,114,115,116,117,120,121,122,106,118,119], - [1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,9], - true, - false, - false - ), - new cipher( - "Beatus of Liebana", - "Latin", - 216, 95, 73, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,9,10,20,30,40,50,60,70,80,90,100,200,200,200,300,400,500], - true, - false, - false - ), - new cipher( - "Beatus Ordinal", - "Latin", - 216, 87, 80, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,9,10,11,12,13,14,15,16,17,18,19,20,20,20,21,22,23], - true, - false, - false - ), - new cipher( - "Beatus Reduction", - "Latin", - 216, 53, 68, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,9,1,2,3,4,5,6,7,8,9,1,2,2,2,3,4,5], - true, - false, - false - ), - new cipher( - "English Qaballa", - "Thelemic", - 13, 68, 64, - [97,108,119,104,115,100,111,122,107,118,103,114,99,110,121,106,117,102,113,98,109,120,105,116,101,112], - [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], - true, - false, - false - ), - new cipher( - "Cipher X", - "Thelemic", - 36, 94, 64, - [107,102,119,114,109,100,121,116,97,118,113,104,99,120,111,106,101,108,103,98,115,110,105,122,117,112], - [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26], - true, - false, - false - ), - new cipher( - "Trigrammaton Qabalah", - "Thelemic", - 195, 68, 69, - [105,108,99,104,112,97,120,106,119,116,111,103,102,101,114,115,113,107,121,122,98,109,118,100,110,117], - [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25], - true, - false, - false - ), - new cipher( - "English Sumerian", - "Mathematic", - 95, 41, 69, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [6,12,18,24,30,36,42,48,54,60,66,72,78,84,90,96,102,108,114,120,126,132,138,144,150,156], - true, - false, - false - ), - new cipher( - "Reverse Sumerian", - "Mathematic", - 50, 51, 72, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [156,150,144,138,132,126,120,114,108,102,96,90,84,78,72,66,60,54,48,42,36,30,24,18,12,6], - true, - false, - false - ), - new cipher( - "Primes", - "Mathematic", - 44, 56, 62, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101], - true, - false, - false - ), - new cipher( - "Reverse Primes", - "Mathematic", - 35, 46, 62, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [101,97,89,83,79,73,71,67,61,59,53,47,43,41,37,31,29,23,19,17,13,11,7,5,3,2], - true, - false, - false - ), - new cipher( - "Trigonal", - "Mathematic", - 34, 47, 59, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,136,153,171,190,210,231,253,276,300,325,351], - true, - false, - false - ), - new cipher( - "Reverse Trigonal", - "Mathematic", - 23, 43, 53, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [351,325,300,276,253,231,210,190,171,153,136,120,105,91,78,66,55,45,36,28,21,15,10,6,3,1], - true, - false, - false - ), - new cipher( - "Squares", - "Mathematic", - 55, 39, 56, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289,324,361,400,441,484,529,576,625,676], - true, - false, - false - ), - new cipher( - "Reverse Squares", - "Mathematic", - 58, 29, 53, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [676,625,576,529,484,441,400,361,324,289,256,225,196,169,144,121,100,81,64,49,36,25,16,9,4,1], - true, - false, - false - ), - new cipher( - "Septenary", - "Other", - 37, 54, 55, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,6,5,4,3,2,1,1,2,3,4,5,6,7,6,5,4,3,2,1], - true, - false, - false - ), - new cipher( - "Cheiro Numerology", - "Other", - 79, 36, 61, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,8,3,5,1,1,2,3,4,5,7,8,1,2,3,4,6,6,6,5,1,7], - true, - false, - false - ), - new cipher( - "Keypad", - "Other", - 300, 100, 75, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [2,2,2,3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,7,8,8,8,9,9,9,9], - true, - false, - false - ), - new cipher( - "Fibonacci", - "Other", - 25, 55, 70, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,1,2,3,5,8,13,21,34,55,89,144,233,233,144,89,55,34,21,13,8,5,3,2,1,1], - true, - false, - false - ), - new cipher( - "Alphanumeric Qabbala", - "Other", - 60, 33, 62, - [48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35], - true, - false, - false - ), - new cipher( - "Alphanumeric Satanic", - "Other", - 32, 68, 62, - [48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90], - [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61], - true, - false, - true - ), - new cipher( - "Zeroing Key", - "Zeroing", - 216, 50, 69, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [13,12,11,10,9,8,7,6,5,4,3,2,1,-1,-2,-3,-4,-5,-6,-7,-8,-9,-10,-11,-12,-13], - true, - false, - false - ), - new cipher( - "Mirroring Key", - "Zeroing", - 144, 33, 64, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,10,11,12,13,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1], - true, - false, - false - ), - new cipher( - "Alphanumeric Halves", - "Zeroing", - 59, 21, 57, - [48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,-17,-16,-15,-14,-13,-12,-11,-10,-9,-8,-7,-6,-5,-4,-3,-2,-1,0], - true, - false, - false - ), - new cipher( - "Hebrew Gematria", - "Hebrew", - 50, 78, 63, - [1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1499,1500,1502,1504,1505,1506,1508,1510,1511,1512,1513,1514,1498,1501,1503,1507,1509], - [1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100,200,300,400,20,40,50,80,90], - true, - false, - false - ), - new cipher( - "Hebrew Ordinal", - "Hebrew", - 33, 91, 58, - [1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1499,1500,1502,1504,1505,1506,1508,1510,1511,1512,1513,1514,1498,1501,1503,1507,1509], - [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,11,13,14,17,18], - true, - false, - false - ), - new cipher( - "Hebrew Reduction", - "Hebrew", - 45, 95, 53, - [1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1499,1500,1502,1504,1505,1506,1508,1510,1511,1512,1513,1514,1498,1501,1503,1507,1509], - [1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,2,4,5,8,9], - true, - false, - false - ), - new cipher( - "Hebrew Sofit", - "Hebrew", - 44, 62, 73, - [1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1499,1500,1502,1504,1505,1506,1508,1510,1511,1512,1513,1514,1498,1501,1503,1507,1509], - [1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100,200,300,400,500,600,700,800,900], - true, - false, - false - ), - new cipher( - "Greek Isopsephy", - "Greek", - 191, 71, 71, - [945,946,947,948,949,989,987,950,951,952,953,954,955,956,957,958,959,960,985,961,963,962,964,965,966,967,968,969,993], - [1,2,3,4,5,6,6,7,8,9,10,20,30,40,50,60,70,80,90,100,200,200,300,400,500,600,700,800,900], - true, - false, - false - ), - new cipher( - "Greek Ordinal", - "Greek", - 154, 70, 67, - [945,946,947,948,949,989,987,950,951,952,953,954,955,956,957,958,959,960,985,961,963,962,964,965,966,967,968,969,993], - [1,2,3,4,5,6,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,20,21,22,23,24,25,26,27], - true, - false, - false - ), - new cipher( - "Greek Reduction", - "Greek", - 141, 53, 80, - [945,946,947,948,949,989,987,950,951,952,953,954,955,956,957,958,959,960,985,961,963,962,964,965,966,967,968,969,993], - [1,2,3,4,5,6,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,2,3,4,5,6,7,8,9], - true, - false, - false - ), - new cipher( - "Greek Ordinal 24", - "Greek", - 218, 75, 81, - [945,946,947,948,949,950,951,952,953,954,955,956,957,958,959,960,961,963,962,964,965,966,967,968,969], - [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,18,19,20,21,22,23,24], - true, - false, - false - ), - new cipher( - "Arabic", - "Arabic", - 25, 64, 59, - [1575,1649,1650,1651,1653,1576,1580,1583,1607,1577,1608,1586,1581,1591,1610,1609,1603,1604,1605,1606,1587,1593,1601,1589,1602,1585,1588,1578,1579,1582,1584,1590,1592,1594], - [1,1,1,1,1,2,3,4,5,5,6,7,8,9,10,10,20,30,40,50,60,70,80,90,100,200,300,400,500,600,700,800,900,1000], - true, - false, - false - ), - new cipher( - "Arabic Ordinal", - "Arabic", - 25, 59, 64, - [1575,1649,1650,1651,1653,1576,1580,1583,1607,1577,1608,1586,1581,1591,1610,1609,1603,1604,1605,1606,1587,1593,1601,1589,1602,1585,1588,1578,1579,1582,1584,1590,1592,1594], - [1,1,1,1,1,2,3,4,5,5,6,7,8,9,10,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28], - true, - false, - false - ), - new cipher( - "Arabic Reduction", - "Arabic", - 25, 54, 69, - [1575,1649,1650,1651,1653,1576,1580,1583,1607,1577,1608,1586,1581,1591,1610,1609,1603,1604,1605,1606,1587,1593,1601,1589,1602,1585,1588,1578,1579,1582,1584,1590,1592,1594], - [1,1,1,1,1,2,3,4,5,5,6,7,8,9,1,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1], - true, - false, - false - ), - new cipher( - "Russian Ordinal", - "Russian", - 120, 65, 62, - [1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103], - [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33], - false, - false, - false - ), - new cipher( - "Russian Reduction", - "Russian", - 216, 95, 73, - [1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103], - [1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6], - false, - false, - false - ), - new cipher( - "Russian R Ordinal", - "Russian", - 146, 74, 50, - [1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103], - [33,32,31,30,29,28,27,26,25,24,23,22,21,20,19,18,17,16,15,14,13,12,11,10,9,8,7,6,5,4,3,2,1], - false, - false, - false - ), - new cipher( - "Russian R Reduction", - "Russian", - 180, 60, 69, - [1072,1073,1074,1075,1076,1077,1105,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,1103], - [6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1,9,8,7,6,5,4,3,2,1], - false, - false, - false - ), - new cipher( - "Standard Alternative", - "Extra", - 43, 80, 56, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170], - true, - false, - false - ), - new cipher( - "R Standard Alternative", - "Extra", - 43, 80, 67, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [170,160,150,140,130,120,110,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1], - true, - false, - false - ), - new cipher( - "Elizabethan Alphanumeric", - "Extra", - 33, 67, 67, - [48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,18,19,20,21,22,23,24,25,26,27,28,29,29,30,31,32,33], - true, - false, - false - ), - new cipher( - "Elizabethan 360", - "Extra", - 41, 100, 49, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,8,9,10,10,12,15,18,20,24,30,36,40,45,60,72,72,90,120,180,360], - true, - false, - false - ), - new cipher( - "Cabala Simplex", - "Extra", - 180, 60, 65, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,9,3,10,11,12,13,14,15,16,17,18,19,19,19,20,21,22], - true, - false, - false - ), - new cipher( - "Roman Numerals", - "Extra", - 150, 50, 60, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [0,0,100,500,0,0,0,0,1,1,0,50,1000,0,0,0,0,0,0,0,5,5,0,10,0,0], - true, - false, - false - ), - new cipher( - "Elevenfold Qabalah", - "Extra", - 110, 44, 66, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,8,9,10,11,1,2,3,4,5,6,7,8,9,10,11,1,2,3,4], - true, - false, - false - ), - new cipher( - "Toavotea Key", - "Extra", - 30, 50, 70, - [97,105,113,121,102,110,118,100,108,116,98,106,114,122,103,111,119,101,109,117,99,107,115,104,112,120], - [1,4,6,8,10,12,14,16,18,20,22,24,26,0,2,3,5,7,11,13,17,19,23,29,31,28], - true, - false, - false - ), - new cipher( - "Alphanumeric Primes", - "Extra", - 34, 53, 73, - [48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149], - true, - false, - false - ), - new cipher( - "Alphanumeric Trigonal", - "Extra", - 101, 22, 64, - [48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [0,1,3,6,10,15,21,28,36,45,55,66,78,91,105,120,136,153,171,190,210,231,253,276,300,325,351,378,406,435,465,496,528,561,595,630], - true, - false, - false - ), - new cipher( - "Alphanumeric Squares", - "Extra", - 175, 19, 61, - [48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [0,1,4,9,16,25,36,49,64,81,100,121,144,169,196,225,256,289,324,361,400,441,484,529,576,625,676,729,784,841,900,961,1024,1089,1156,1225], - true, - false, - false - ), - new cipher( - "Synx", - "Extra", - 180, 44, 66, - [48,49,50,51,52,53,54,55,56,57,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,6,7,9,10,12,14,15,18,20,21,28,30,35,36,42,45,60,63,70,84,90,105,126,140,180,210,252,315,420,630,1260], - true, - false, - false - ), - new cipher( - "Chaldean (Cheiro)", - "Extra", - 99, 36, 54, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,3,4,5,8,3,5,1,1,2,3,4,5,7,8,1,2,3,4,6,6,6,5,1,7], - true, - false, - false - ), - new cipher( - "Kabbalistic (Sepharial)", - "Extra", - 108, 45, 63, - [97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122], - [1,2,2,4,5,8,3,8,1,1,2,3,4,5,7,8,1,2,3,4,6,6,6,6,1,7], - true, - false, - false - ), - new cipher( - "Prime Qabalah", - "Extra", - 89, 59, 70, - [97,101,105,111,117,98,99,100,102,103,104,106,107,108,109,110,112,113,114,115,116,118,119,120,121,122], - [1,2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97], - true, - false, - false - ), - new cipher( - "William G. Gray", - "Extra", - 150, 70, 60, - [97,101,105,111,117,98,99,100,102,103,104,106,107,108,109,110,112,113,114,115,116,118,119,120,121,122], - [0,0,0,0,0,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31], - true, - false, - false - ) -]