brainpicture / hashlib

lib for node which makes hashes
nodejs.ru
165 stars 35 forks source link

fix bug 14, make hashlib binary safe #21

Closed poelzi closed 13 years ago

poelzi commented 13 years ago

this patch fixes hashlib which does not respect Buffers as it should.

The macro converts argument positions to raw data. I was forced to use it because i wasn't able get the value out of scope of a lookup function withcout beeing collected by the garbage collector. It could be optimized a little bit, but I didn't found a way to just declare a Utf8Value and initialize it later.

msm595 commented 13 years ago

Thank you :D