this.description="The Affine cipher is a type of monoalphabetic substitution cipher. To decrypt, each letter in an alphabet is mapped to its numeric equivalent, decrypted by a mathematical function, and converted back to a letter.";
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){
constalphabet="abcdefghijklmnopqrstuvwxyz",
a=args[0],
b=args[1],
aModInv=Utils.modInv(a,26);// Calculates modular inverse of a