@@ -45,8 +45,7 @@ class AffineCipherDecode extends Operation {
*/
run(input, args) {
const alphabet = "abcdefghijklmnopqrstuvwxyz",
- a = args[0],
- b = args[1],
+ [a, b] = args,
aModInv = Utils.modInv(a, 26); // Calculates modular inverse of a
let output = "";
@@ -6,6 +6,7 @@
import Operation from "../Operation";
import { affineEncode } from "../lib/Ciphers";
+
/**
* Affine Cipher Encode operation
@@ -7,6 +7,7 @@
import { genPolybiusSquare } from "../lib/Ciphers";
import OperationError from "../errors/OperationError";
* Bifid Cipher Decode operation