mattrobenolt/node-snsclient — pull request #1 by hakobera (2012-08-08 14:23:59+00:00)
Title: Signature verification failed when notification message contains multibyte character

Signature verification in validateMessage() failed when notification message contains multibyte character like Japanese Kanji, because default encoding of Verify.update() is 'binary' not 'utf8'.

https://github.com/joyent/node/blob/master/src/node_crypto.cc#L3513
https://github.com/joyent/node/blob/master/src/node.h#L132

To fix this, set encoding to 'utf8' explicitly using second argument of Verify.update().