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

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

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