Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
17
Task/RIPEMD-160/C-sharp/ripemd-160.cs
Normal file
17
Task/RIPEMD-160/C-sharp/ripemd-160.cs
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
using System;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
string text = "Rosetta Code";
|
||||
byte[] bytes = Encoding.ASCII.GetBytes(text);
|
||||
RIPEMD160 myRIPEMD160 = RIPEMD160Managed.Create();
|
||||
byte[] hashValue = myRIPEMD160.ComputeHash(bytes);
|
||||
var hexdigest = BitConverter.ToString(hashValue).Replace("-", "").ToLower();
|
||||
Console.WriteLine(hexdigest);
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue