Advertisement
keem1

Program.cs

Jun 27th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.73 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Security.Cryptography;
  6.  
  7. namespace proba
  8. {
  9.         class Program
  10.         {
  11.                 static void Main(string[] args)
  12.                 {
  13.                         string probaszoveg = "Árvíztűrő tükörfúrógép";
  14.                         string hash = String.Empty;
  15.  
  16.                         Crc32 crc32 = new Crc32();
  17.                         foreach (byte b in crc32.ComputeHash(Encoding.ASCII.GetBytes(probaszoveg))) hash += b.ToString("x2").ToLower();
  18.                         Console.WriteLine("Szöveg: " + probaszoveg);
  19.                         Console.WriteLine("CRC32 hash: " + hash);
  20.                 }
  21.         }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement