javascript reversible pseudo hashing
<p>Are there any "reversible" pseudo hashing functions available in javascript? The reason I ask is because I'm bouncing a string around various parts of my application but the string contains characters that are incompatible with certain parts of the app. So I'd like to convert "152(/,blue-Test#" in to an alphanumeric string and then be able to convert it back to the original value later on.</p>

<p>Security etc is not important, it can be "crackable", the length of the hash can be variable, etc.</p>

<p>If the same function could be easily replicated in to a PHP function that would be perfect.</p>
