-
Notifications
You must be signed in to change notification settings - Fork 7.3k
crypto: possible autopadding bug #7647
Comments
Could you please try latest node v0.10.28 please? There was a lot of bug fixes in crypto module since v0.10.5, would be cool to know if the problem is already fixed. |
Done, same thing. |
You are missing the utf8 output_encoding in the last call to At the moment it outputs a buffer and does not know that the previous |
Oh right, I got confused and tought it wasn't needed there. 2014-05-20 11:04 GMT+02:00 Tõnis Tiigi notifications@github.com:
|
np |
When running that on osx mavericks + openssl 1.0.1g + node v0.10.5, the result is a corrupted string. Same thing happens using a Buffer instead of a string.
If you add 7 more single-byte-characters to the string (in order to make the string 64bytes long), the problem goes away.
I've read previous issues (like #738) but this behaviour isn't dependent on the cyphertext encoding, in fact the same happens with both
'base64'
and'binary'
.The text was updated successfully, but these errors were encountered: