From 5d1836b5a4e4642b54b751abb749d6063fea982e Mon Sep 17 00:00:00 2001 From: unknown321 Date: Tue, 18 Oct 2016 17:46:50 +0300 Subject: [PATCH] fix for small hashes --- main.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.cs b/main.cs index 69f6dbc..e7a0b17 100644 --- a/main.cs +++ b/main.cs @@ -73,6 +73,8 @@ public static void Main(string[] args) } ulong testStrCode32 = GetStrCode32(text); hash = testStrCode32.ToString("x"); + if (hash.Length < 12) + hash = hash.PadLeft(12,'0'); hash = hash.Substring(hash.Length-12,12); if (reverse) {