public string Encrypt(string plainText, ProductionCipherKey productionCipherKey) { return(xorCipher.Encrypt(rotateCipher.Encrypt(caesarCipher.Encrypt(plainText, productionCipherKey.ReplaceKey), productionCipherKey.RotateKey), productionCipherKey.Password)); }
public static string RotateDecrypt(this string value, int key) { var rotateCipher = new RotateCipher(); return(rotateCipher.Encrypt(value, -key)); }