Example #1
0
        public static string Decryption(string cipher, string key, IBlockCipherPadding padding)
        {
            BlowFishEncryptor encriptor = new BlowFishEncryptor();

            encriptor.SetPadding(padding);
            return(encriptor.Decrypt(cipher, key));
        }
Example #2
0
        public static string Encryption(string plain, string key, IBlockCipherPadding padding)
        {
            BlowFishEncryptor encriptor = new BlowFishEncryptor();

            encriptor.SetPadding(padding);
            return(encriptor.Encrypt(plain, key));
        }