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.

00c0ef216d9af50fed60eec7481d8fa16d198d4f11b6290264d9a7a21e0f8fc2

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()));