From 331e9c469e3f414a7450344dce6cb43551ae6c1c Mon Sep 17 00:00:00 2001 From: Macide Celik Date: Mon, 28 Oct 2019 00:55:11 +0300 Subject: [PATCH] Delete AffineCipherEncode.mjs --- src/core/operations/AffineCipherEncode.mjs | 78 ---------------------- 1 file changed, 78 deletions(-) delete mode 100644 src/core/operations/AffineCipherEncode.mjs diff --git a/src/core/operations/AffineCipherEncode.mjs b/src/core/operations/AffineCipherEncode.mjs deleted file mode 100644 index a9462ae8..00000000 --- a/src/core/operations/AffineCipherEncode.mjs +++ /dev/null @@ -1,78 +0,0 @@ -/** - * @author Matt C [matt@artemisbot.uk] - * @copyright Crown Copyright 2018 - * @license Apache-2.0 - */ - -import Operation from "../Operation.mjs"; -import { affineEncode } from "../lib/Ciphers.mjs"; - -/** - * Affine Cipher Encode operation - */ -class AffineCipherEncode extends Operation { - - /** - * AffineCipherEncode constructor - */ - constructor() { - super(); - - this.name = "Affine Cipher Encode"; - this.module = "Ciphers"; - this.description = "The Affine cipher is a type of monoalphabetic substitution cipher, wherein each letter in an alphabet is mapped to its numeric equivalent, encrypted using simple mathematical function, (ax + b) % 26, and converted back to a letter."; - this.infoURL = "https://wikipedia.org/wiki/Affine_cipher"; - this.inputType = "string"; - this.outputType = "string"; - this.args = [ - { - "name": "a", - "type": "number", - "value": 1 - }, - { - "name": "b", - "type": "number", - "value": 0 - } - ]; - } - - /** - * @param {string} input - * @param {Object[]} args - * @returns {string} - */ - run(input, args) { - return affineEncode(input, args); - } - - /** - * Highlight Affine Cipher Encode - * - * @param {Object[]} pos - * @param {number} pos[].start - * @param {number} pos[].end - * @param {Object[]} args - * @returns {Object[]} pos - */ - highlight(pos, args) { - return pos; - } - - /** - * Highlight Affine Cipher Encode in reverse - * - * @param {Object[]} pos - * @param {number} pos[].start - * @param {number} pos[].end - * @param {Object[]} args - * @returns {Object[]} pos - */ - highlightReverse(pos, args) { - return pos; - } - -} - -export default AffineCipherEncode;