Posted By: Anonymous
Buffers to decode.
If you are going for a cross-browser solution, there are existing libraries like CryptoJS or code like:
With the latter, you need to thoroughly test the function for cross browser compatibility. And error has already been reported.