fixed for changes in crypto api in node 0.10

this breaks in node<0.10 though...

I'll see if I can come up with a solution that works on both versions.

Do you prefer version checks or should I try to find another solution?