Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Test.cs « Crypto « Integration « TestCases « Tests « linker - github.com/mono/linker.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8c38f929750673e9611ae6651948ff1a740f7dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using System;
using System.Security.Cryptography;
using System.Text;

class Test {

	static void Main ()
	{
		byte [] foo = Encoding.UTF8.GetBytes ("foobared");

		HashAlgorithm ha = MD5.Create ();
		byte [] hash = ha.ComputeHash (foo);

		Console.WriteLine (Encoding.UTF8.GetString (hash));
	}
}