Skip to content

Instantly share code, notes, and snippets.

View RaulOrnelasGomez's full-sized avatar

RaulOrnelasGomez

View GitHub Profile
@doncadavona
doncadavona / Aes256CbcEncrypterApp.cs
Last active November 21, 2024 18:38
A sample C# class to encrypt and decrypt strings using the cipher AES-256-CBC used in Laravel.
using System;
using System.Text;
using System.Security.Cryptography;
using System.Web.Script.Serialization;
using System.Collections.Generic;
namespace Aes256CbcEncrypterApp {
class MainClass {
public static void Main(string[] args) {
Console.WriteLine("Hello, world!");