Implement hash algorithm for strings using sha256. If not available we still use random ids.