title: Decode hash sha256 encryption, knowing the salt
body: <p>I'm making a login system for a web application. To store passwords in the DB, I'm encrypting passwords using sha256 as follows:</p>
  
  <pre><code>$salt ="sometext";
  $escapedPW="userpass";
  $saltedPW =  $escapedPW . $salt;
  $hashedPW = hash('sha256', $saltedPW);
  echo "&lt;center&gt;".$hashedPW."&lt;/center&gt;";
  </code></pre>
  
  <p>In the database I am storing the user, the user's password and the salt used to make hash and validate the user's  login. Right now I'm doing the functionality to send to the user an email with your password, but when the user receives the email, since is stored in sha256 encrypted password, the user receives a long string and not the password that the user is supposed to know. </p>
  
  <p>My question is there any way that I can send you the actual user password and non the password encryption, ie, there is some way to do the reverse of sha256 if I know the salt?. If not possible, what method of encryption is recommended for you to complete the reverse of the encryption key and send the actual password to the user in an email. </p>