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 July 1, 2024 14:21
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!");