예제 #1
0
파일: Aes.cs 프로젝트: niuniuzhu/RC
        public static byte[] AesEncrypt(byte[] data, byte[] key)
        {
            Aes aes = new Aes(key);

            return(aes.Encrypt(data));
        }
예제 #2
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);
        }
예제 #3
0
파일: Aes.cs 프로젝트: niuniuzhu/RC
        public static byte[] AesEncrypt(byte[] data)
        {
            Aes aes = new Aes(CryptoConfig.AES_KEY, CryptoConfig.AES_IV);

            return(aes.Encrypt(data));
        }