wasdk / WebAssemblyStudio

Learn, Teach, Work and Play in the WebAssembly Studio

Home Page:http://webassembly.studio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Corrupted base64 encoding

jeff1010322 opened this issue · comments

The padding for base64 encoding is adding one too many equal signs when the byte remainder is 1.

base64 += concat3(encodings[a], encodings[b], "===");

This is based on a gist that correctly appends 2 equal signs:

https://gist.github.com/jonleighton/958841#file-base64arraybuffer-js-L53

Closed by #401