getMd5 function to static