Skip to content

Instantly share code, notes, and snippets.

@jiavictor
jiavictor / AES256.cs
Last active Oct 22, 2018
Simple AES-256-CBC Test
View AES256.cs
using System;
using System.Text;
using System.Security.Cryptography;
namespace AES256
{
class Program
{
private string encrypt(string clearText, string secretKey, string initVector)
{
@jiavictor
jiavictor / AES128.cs
Last active Oct 22, 2018
Simple AES-128-CBC Test
View AES128.cs
using System;
using System.Text;
using System.Security.Cryptography;
namespace AES128
{
class Program
{
private string encrypt(string clearText, string secretKey, string initVector)
{
@jiavictor
jiavictor / TripleDES.cs
Last active Oct 22, 2018
Simple Triple-DES-ECB Test
View TripleDES.cs
using System;
using System.Text;
using System.Security.Cryptography;
namespace TripleDES
{
class Program
{
private string encrypt(string clearText, string secretKey)
{
You can’t perform that action at this time.