Added hash fucntion for access rights obfuscation