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

``alias`` make decoding buggy #16

Open calve opened 8 years ago

calve commented 8 years ago

Hi folks,

I noticed the following behaviour

> base32.decode(base32.encode("deadbeef111"))
< "d{adbe{f111"

which appers to be introduced by the alias behaviour. I nulled the aliases dictionnary to retablish the desired behaviour.

> base32.decode(base32.encode("deadbeef111"))
< "deadbeef111"