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.

e972fe9c9e41b5232052af6f5d04d85b9300da46ac417bd7ea21ce5dd53bcd82

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