Drupal Hash Salt Generator

If you need a hash salt, you've come to the right place!

Your Hash Salt

Reload the page for a new one.

6fcb24a6bc0ea5254e70b89e7b4bec8786c841d67bb5ab14e1743c2f53611954

The Code

The hash salt is generated with the following code:

function generateRandomString($length = 10) {
  $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
  $charactersLength = strlen($characters);
  $randomString = '';
  for ($i = 0; $i < $length; $i++) {
      $randomString .= $characters[rand(0, $charactersLength - 1)];
  }
  return $randomString;
}

print hash('sha256', serialize(generateRandomString()));