--
You received this message because you are subscribed to the Google Groups "nodejs" group.
To post to this group, send email to nod...@googlegroups.com.
To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
As to pkrumin's module being deprecated, you probably should ask him
(I don't think he reads this list). His module may do things the core
doesn't.
>> nodejs+un...@googlegroups.com<nodejs%2Bunsu...@googlegroups.com>
just a note:
the nodejs base64 encoder does NOT fill/remove the null bits (=)
.. which are required basically everywhere.
(most encoder/decoders do, at least the one i've seen)
/tong
--
[) | 5 |< � |2 3 3
The decoder should (I wrote it). Not sure about the encoder. I'll have
a look tomorrow.
--
Just checked, both the encoder and the decoder work as expected. Do
you perhaps have a test case?
the line i am talking about is here:
http://disktree.spektral.at/git/?a=viewblob&p=owl&h=0bea3576035ec71aa6703e2f8ce881b823381a66&hb=d4235be9b501bcce478ae31542bff56fd90070d4&f=owl/client/sasl/PlainMechanism.hx
.. in the 'start' method.
and the 'removeNullbits' method is here:
http://disktree.spektral.at/git/?a=viewblob&p=owl&h=4a215e9d9ed03988c268cb8d503b709e30eea6a3&hb=d4235be9b501bcce478ae31542bff56fd90070d4&f=owl/util/Base64.hx
... this is haXe code compiled to javascript, but this shouldn't make
any difference.
if you sure your decoding is correct the problem might be somewhere
else, but as said it worked before using the built-in one.
best.tong
All tests that deal with padding pass but perhaps they're not rigid
enough. Could you post a few example inputs and expected outputs? That
would really help.
thanks/tong.
Don't worry, tong. Glad you got it sorted out. :-)