I have changed my website over to Laravel and using their method of storing passwords.

However all my olds users passwords were stored differently using salts. My inital aim was to simply run all the users and their salt through some code to get the raw password and then run them through the Laravel process.

However, I cannot figure out how to get the raw passwords. The code to generate the salt and passwords was given to me and it was cut and paste job before I knew too much.

So, old way of creating a users password:

```
// Create a salt for password
$salt = dechex(mt_rand(0, 2147483647)) . dechex(mt_rand(0, 2147483647)); 

// Hash for password
$password = hash('sha256', $_POST['password'] . $salt); 

// Next we hash the hash value 65536 more times...
for($round = 0; $round < 65536; $round++) 
{ 
  $password = hash('sha256', $password . $salt); 
}

```

And then when logging in:

```
$check_password = hash('sha256', $_POST['password'] . $row['salt']); 
for($round = 0; $round < 65536; $round++) 
{ 
  $check_password = hash('sha256', $check_password . $row['salt']); 
}

```

Is it possible with what I have to reverse the changes and get the raw passwords?

If needs for testing, a hashed password and salt:

```
password: f7e98af40e141e8abdae42c6e4c3375ff7eede881678a07b18898724240035de
salt: 3eb9507334ff0ab2

```

Thanks.