Skip to content

Instantly share code, notes, and snippets.

View aloraman's full-sized avatar

Evgeniy Alexandrov aloraman

  • Saint-Petersburg, Russia
View GitHub Profile
@aloraman
aloraman / EqualityComparerEx.cs
Created August 12, 2022 09:55
EqualityComparerEx type from Adalon.Mediolanum
// LICENSE: MIT
// Taken from Adalon.Mediolanum
// Not published yet
// Will be published under MIT license
// To use: replace ThrowHelper with other null check
// replace FrugalPairLocalList with other List collection
// Usage: EqualityComparerEx.Select((Foo f) => f.IntProperty).ChainWith(f=>f.StringProperty, StringComparer.OrdinalIgnoreCase)
using System;
using System.Collections.Generic;
@aloraman
aloraman / RdpSign.cs
Last active April 22, 2024 13:38
Single method implementation of RdpSign algorithm
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.Pkcs;
using System.Security.Cryptography.X509Certificates;
using System.Text;
public static class Gist
{
// Based on original RdpSign reverse engineering by Norbert Federa (https://github.com/nfedera/rdpsign).