title: Laravel how to create sha256 hash with salt
body: <p>I have a running application that uses client-side Sha256 hashing.<br />
  I would like to use Laravels serverside bcrypt hashing instead.</p>
  <p>My strategy is to wrap all passwords with bcrypt, so I have <code>bcrypt(sha256('password'))</code>, and then rehash the password when the user attempts to log in, so I simply have <code>bcrypt('password')</code>.</p>
  <p>My problem is authenticating the user when they try to log in with a Sha256 password.</p>
  <p>I try to authenticate them by running<br />
  <code>if (hash('sha256', 'password' . 'salt') == $stored_pw)</code><br />
  But with no luck. I'm only fairly certain that the client-side hashing simply appends the salt, and I'm unsure if Laravels <code>hash</code> function adds a salt of its own.</p>
  <p>Here's a hash created by the client from the password 1234567: <code>$5$a0FpUG9JUgkj1d6H$eSSzXebYU87wPAWSTRJGyWw/kOMgDvPqcri4CI1QCV0</code><br />
  I am trying to recreate the same hash using the salt, the password, and Laravels hashing functions.</p>
  <p>How do I specify that the Sha256 function should use a specific salt?</p>