Content-based hash