0

I want to use the cypto package to decode a base64 string. From the docs,

http://nodejs.org/docs/v0.3.1/api/crypto.html#hash.digest

I am rather confused on how do do it.

e.g. mystring - base64(string).decode()

Tampa
  • 75,446
  • 119
  • 278
  • 425
  • You can convert base 64 to a different encoding, but if the data inside of it is a hash, you cannot reverse the hash. – Corbin May 18 '12 at 05:59
  • I use python to encode and decode a query string. Why cant I do it in node.js? http://docs.python.org/library/base64.html – Tampa May 18 '12 at 06:19
  • 1
    See the answer http://stackoverflow.com/a/6182519/388787 – Dan D. May 18 '12 at 06:21
  • 2
    possible duplicate of [How to do Base64 encoding in node.js?](http://stackoverflow.com/questions/6182315/how-to-do-base64-encoding-in-node-js) – Dan D. May 18 '12 at 06:21

0 Answers0