Exemple #1
0
        public string AESDecryption(string cipher, bool fips)
        {
            BCEngine bcEngine = new BCEngine(new AesEngine(), _encoding);

            bcEngine.SetPadding(_padding);
            return(bcEngine.Decrypt(cipher, key));
        }
Exemple #2
0
        public string AESEncryption(string plain, bool fips)
        {
            BCEngine bcEngine = new BCEngine(new AesEngine(), _encoding);

            bcEngine.SetPadding(_padding);
            return(bcEngine.Encrypt(plain, key));
        }