示例#1
0
文件: Aes.cs 项目: niuniuzhu/RC
        public static void AesEncrypt(Stream i, Stream o, byte[] key, byte[] iv)
        {
            Aes aes = new Aes(key, iv);

            aes.Encrypt(i, o);
        }
示例#2
0
文件: Aes.cs 项目: niuniuzhu/RC
        public static byte[] AesEncrypt(byte[] data, byte[] key)
        {
            Aes aes = new Aes(key);

            return(aes.Encrypt(data));
        }
示例#3
0
文件: Aes.cs 项目: niuniuzhu/RC
        public static byte[] AesDecrypt(byte[] data)
        {
            Aes aes = new Aes(CryptoConfig.AES_KEY, CryptoConfig.AES_IV);

            return(aes.Decrypt(data));
        }
示例#4
0
文件: Aes.cs 项目: niuniuzhu/RC
        public static byte[] AesDecrypt(byte[] data, byte[] key, byte[] iv)
        {
            Aes aes = new Aes(key, iv);

            return(aes.Decrypt(data));
        }
示例#5
0
文件: Aes.cs 项目: niuniuzhu/RC
        public static void AesDecrypt(Stream i, Stream o, byte[] key)
        {
            Aes aes = new Aes(key);

            aes.Decrypt(i, o);
        }