diff --git a/src/core/operations/AffineCipherDecode.mjs b/src/core/operations/AffineCipherDecode.mjs index 3d418453..184fa67c 100644 --- a/src/core/operations/AffineCipherDecode.mjs +++ b/src/core/operations/AffineCipherDecode.mjs @@ -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 = ""; diff --git a/src/core/operations/AffineCipherEncode.mjs b/src/core/operations/AffineCipherEncode.mjs index 939bf23a..e9aeec32 100644 --- a/src/core/operations/AffineCipherEncode.mjs +++ b/src/core/operations/AffineCipherEncode.mjs @@ -6,6 +6,7 @@ import Operation from "../Operation"; import { affineEncode } from "../lib/Ciphers"; + /** * Affine Cipher Encode operation */ diff --git a/src/core/operations/BifidCipherDecode.mjs b/src/core/operations/BifidCipherDecode.mjs index a78507e6..dbfc7628 100644 --- a/src/core/operations/BifidCipherDecode.mjs +++ b/src/core/operations/BifidCipherDecode.mjs @@ -7,6 +7,7 @@ import Operation from "../Operation"; import { genPolybiusSquare } from "../lib/Ciphers"; import OperationError from "../errors/OperationError"; + /** * Bifid Cipher Decode operation */