-
-
Notifications
You must be signed in to change notification settings - Fork 33.2k
Closed
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.
Description
new Buffer(str, "base64")
officially accepts both RFC 3548 (+
,/
) encoding as well as RFC 4648 (-
,_
) encoding (see #5239 and #5243).
To base64 encode a buffer using RFC 3548 we can actually do buffer.toString("base64")
.
Would it be possible to also natively support RFC 4648 format using buffer.toString("base64url")
?
If yes, should we strip trailing =
characters as they are unnecessary and potentially harmful used in an URL?
tigt, daveagill, Alexsey, tarmo888, bburhans and 57 more
Metadata
Metadata
Assignees
Labels
bufferIssues and PRs related to the buffer subsystem.Issues and PRs related to the buffer subsystem.feature requestIssues that request new features to be added to Node.js.Issues that request new features to be added to Node.js.