/// <summary> /// 解密 /// </summary> /// <param name="KeyPath"></param> /// <param name="data"></param> /// <returns></returns> public byte[] DecryptVideo(string KeyPath, byte[] data) { Rijndael rij = new Rijndael(); RijndaelKey rijKey = rij.GetKeyAndIV(KeyPath); return(rij.Decrypt(data, rijKey.key, rijKey.IV)); }