Skip to content

Instantly share code, notes, and snippets.

@roycornelissen
roycornelissen / keybase.md
Last active January 23, 2016 13:40
Keybase Proof Gist

Keybase proof

I hereby claim:

  • I am roycornelissen on github.
  • I am roycornelissen (https://keybase.io/roycornelissen) on keybase.
  • I have a public key whose fingerprint is FD89 BD72 4DE4 FA5D D4C4 FF8D CEFA BC01 F8BF DAE8

To claim this, I am signing this object:

@roycornelissen
roycornelissen / gist:f43c8cd6f558f912f242
Last active August 29, 2015 14:18
Simple ViewModel class for Xamarin demos
using System;
using System.Collections.Generic;
using System.ComponentModel;
public class EventsViewModel: INotifyPropertyChanged
{
public EventsViewModel()
{
Events = new List<string> {"VSLive!", "//build", "Xamarin Evolve", "Microsoft TechDays"};
NotifyPropertyChanged("Events");
@roycornelissen
roycornelissen / CryptoService.cs
Last active October 12, 2017 11:48
JOSE-JWE implementation for PCL on top of BouncyCastle-PCL
using System;
using System.IO;
using System.Text;
using Org.BouncyCastle.Asn1.Pkcs;
using Org.BouncyCastle.Asn1.X509;
using Org.BouncyCastle.Crypto;
using Org.BouncyCastle.Crypto.Encodings;
using Org.BouncyCastle.Crypto.Engines;
using Org.BouncyCastle.Crypto.Generators;
using Org.BouncyCastle.Crypto.Modes;
@roycornelissen
roycornelissen / ADB2C_TestClient.csproj
Last active July 16, 2019 08:41
Azure AD B2C Console App
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Identity.Client" Version="4.1.0" />
</ItemGroup>