using System;
using System.IO;
using System.IO.Compression;
using System.Linq;
using System.Net;
using CC_Functions.Core;
namespace CC_Functions.Misc
{
///
/// Extension methods for various types
///
public static class GenericExtensions
{
///
/// Extension method for Crypto's Encrypt
///
/// The data to encrypt
/// The key to encrypt with
/// The encrypted data
public static byte[] Encrypt(this byte[] self, byte[] key) => Crypto.Encrypt(self, key);
///
/// Extension method for Crypto's Decrypt
///
/// The data to decrypt
/// The key to decrypt with
/// The decrypted data
public static byte[] Decrypt(this byte[] self, byte[] key) => Crypto.Decrypt(self, key);
}
}