A client recently asked about the Dreamweaver STE format and retrieving a password from it. I’ve never done it, but a little research into the encryption format quickly provided a solution.
The password is basically in the form of number and letter which represent a series of hexadecimal numbers which have been modified a bit.
Let’s say the encrypted password is 70627576
It goes like:
So, 70:62:75:76 becomes 70:61:73:73.
So the password is ‘pass’
Now for the code to do this
$encoded = "70627576"; $letters = explode(' ', wordwrap($encoded, 2, ' ', 2)); $password = ''; for ($i = 0; $i < count($letters); $i++) { $password .= chr(hexdec($letters[$i]) - $i); } echo $password;