Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Security.Cryptography;
- namespace proba
- {
- class Program
- {
- static void Main(string[] args)
- {
- string probaszoveg = "Árvíztűrő tükörfúrógép";
- string hash = String.Empty;
- Crc32 crc32 = new Crc32();
- foreach (byte b in crc32.ComputeHash(Encoding.ASCII.GetBytes(probaszoveg))) hash += b.ToString("x2").ToLower();
- Console.WriteLine("Szöveg: " + probaszoveg);
- Console.WriteLine("CRC32 hash: " + hash);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement