Python Create Hash From String To Real Number