Skip to content

Instantly share code, notes, and snippets.

View igorushko's full-sized avatar

Igor Ushko igorushko

  • Moscow
View GitHub Profile
@igorushko
igorushko / Base64Url.cs
Created September 15, 2017 13:05
Base64Url C#
public static class Base64Url
{
public static string Encode(byte[] arg)
{
if (arg == null)
{
throw new ArgumentNullException("arg");
}
var s = Convert.ToBase64String(arg);