Created
April 30, 2016 12:44
-
-
Save TimVosch/15c0f10653be660d9262a4601a3a8184 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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