[fix] Hashes generates by bytes, not by chars. Some refactor.