Skip to content

Instantly share code, notes, and snippets.

@TimVosch
Created April 30, 2016 12:44
Show Gist options
  • Save TimVosch/15c0f10653be660d9262a4601a3a8184 to your computer and use it in GitHub Desktop.
Save TimVosch/15c0f10653be660d9262a4601a3a8184 to your computer and use it in GitHub Desktop.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UCS.Core.Crypto.Blake2b;
namespace sandbox
{
class Program
{
static void Main(string[] args)
{
Hasher Blake = Blake2B.Create(new Blake2BConfig() { OutputSizeInBytes = 24 });
Blake.Init();
byte[] word1 = Encoding.ASCII.GetBytes("wolf");
byte[] word2 = Encoding.ASCII.GetBytes("dragon");
Blake.Update(word1);
Blake.Update(word2);
byte[] finals = Blake.Finish();
Console.WriteLine(BitConverter.ToString(finals));
Console.ReadKey();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment