GetAttributeBasedHash added

Merged Sandeep S. Shewalkar requested to merge GetAttributeBasedHash into master