agnoster / base32-js

Base32 encoding for JavaScript, based (loosely) on Crockford's Base32
https://github.com/agnoster/base32-js
MIT License
121 stars 61 forks source link

[EXPIRED] Predictable endings with 0 and g #11

Closed sergeevabc closed 7 years ago

sergeevabc commented 9 years ago

Dear Isaac, current implementation supports Uint8Array for input like this base32.encode(array), right? Now I'm curious why both 32-byte (output: 52 chars) and 64-byte (output: 103 chars) arrays as well as relatively long routine UTF8 strings encoded with Base32 predictably ends with either 0 or g. Any thoughts?