Attribute hashing and validation