Releases: dchest/tweetnacl-util-js
Releases · dchest/tweetnacl-util-js
v0.15.0
- Added validation of base64-encoded input:
decodeBase64
will throw if the string contains invalid characters. If you want to ignore whitespace, you should remove it before passing to decoder. (Previously only browser version would throw in this case. Turns out Node.jsBuffer
doesn't validate encoding at all, for "performance" reasons — that is, it returns some kind of output even for invalid input — for exampleBuffer.from("бред", "base64")
results in<Buffer d7 9e>
— which is ridiculous.) Buffer.from
is now used on modern Node.js versions (versions that don't havefrom
will continue using the deprecated constructor.)
This is the last version to be published on Bower: for simplicity, newer versions will only be published on NPM.