Generate user hashes in Drupal 7