From ea586d10f119fe59930f690f48d6afafac3ab8fc Mon Sep 17 00:00:00 2001 From: Macide Celik Date: Mon, 28 Oct 2019 01:00:29 +0300 Subject: [PATCH] Delete AtbashCipher.mjs --- src/core/operations/AtbashCipher.mjs | 67 ---------------------------- 1 file changed, 67 deletions(-) delete mode 100644 src/core/operations/AtbashCipher.mjs diff --git a/src/core/operations/AtbashCipher.mjs b/src/core/operations/AtbashCipher.mjs deleted file mode 100644 index 5635b5b9..00000000 --- a/src/core/operations/AtbashCipher.mjs +++ /dev/null @@ -1,67 +0,0 @@ -/** - * @author Matt C [matt@artemisbot.uk] - * @copyright Crown Copyright 2016 - * @license Apache-2.0 - */ - -import Operation from "../Operation.mjs"; -import { affineEncode } from "../lib/Ciphers.mjs"; - -/** - * Atbash Cipher operation - */ -class AtbashCipher extends Operation { - - /** - * AtbashCipher constructor - */ - constructor() { - super(); - - this.name = "Atbash Cipher"; - this.module = "Ciphers"; - this.description = "Atbash is a mono-alphabetic substitution cipher originally used to encode the Hebrew alphabet. It has been modified here for use with the Latin alphabet."; - this.infoURL = "https://wikipedia.org/wiki/Atbash"; - this.inputType = "string"; - this.outputType = "string"; - this.args = []; - } - - /** - * @param {string} input - * @param {Object[]} args - * @returns {string} - */ - run(input, args) { - return affineEncode(input, [25, 25]); - } - - /** - * Highlight Atbash Cipher - * - * @param {Object[]} pos - * @param {number} pos[].start - * @param {number} pos[].end - * @param {Object[]} args - * @returns {Object[]} pos - */ - highlight(pos, args) { - return pos; - } - - /** - * Highlight Atbash Cipher 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 AtbashCipher;