Skip to content

Instantly share code, notes, and snippets.

View jolovin-mmi's full-sized avatar

Jared Lovin jolovin-mmi

View GitHub Profile
@jolovin-mmi
jolovin-mmi / AES-256 encryption and decryption in PHP and C#.md
Created May 30, 2018 12:44
AES-256 encryption and decryption in PHP and C#

AES-256 encryption and decryption in PHP and C#

Update: There is a more secure version available. Details

PHP

<?php

$plaintext = 'My secret message 1234';
@jolovin-mmi
jolovin-mmi / Program.cs
Created July 6, 2017 15:19
Draws a color map of the colors in a Windows MetaFile
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
namespace WmfColorChecker
{
public class Program
class Program
{
public static void Main(string[] args)
{
var docStore = new DocumentStore
{
Url = "http://apphost02.mountville.dmz:9000",
DefaultDatabase = "MMI"
};
class Program
{
public static void Main(string[] args)
{
var docStore = new DocumentStore
{
Url = "http://apphost02.mountville.dmz:9000",
DefaultDatabase = "MMI"
};
@jolovin-mmi
jolovin-mmi / clusterTest.cs
Last active March 8, 2017 19:53
Custom Cluster Test
namespace ClusterTest
{
public class Program
{
private const string ReadFromDb = "http://genesis:9001";
private const string WriteToDb = "http://uatwebserver.mountville.dmz:9000";
public static void Main(string[] args)
{
var docStore = new DocumentStore