:: Simple hash simulation (just for demo - not cryptographic) set "hash=0" set "counter=0" :hashloop if "!fingerprint:~%counter%,1!"=="" goto hashdone set /a "hash=(hash * 31 + (26 + ( !fingerprint:~%counter%,1! ))) %% 1000000000" 2>nul set /a counter+=1 goto hashloop :hashdone