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

            return(rotateCipher.Encrypt(value, -key));
        }