using System.Security.Cryptography;
private const int LEN = 9;
private const byte MASK = 0xFD;
public static void Main()
string data = "01000000000008719115|9209";
string dataRplc = data.Substring(0, data.IndexOf("|"));
byte[] arr = new byte[dataRplc.Length * sizeof(char)];
Buffer.BlockCopy(dataRplc.ToCharArray(), 0, arr, 0, arr.Length);
for (int i = 0; i < arr.Length; i++)
using (SHA1 crypto = SHA1.Create())
.Concat(crypto.ComputeHash(arr).Select(x => x.ToString()))
Console.WriteLine(data + res);