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