Hash- Function fixed / Extended for Windows-OS