Js Generate Hash Python Programming