BaseNcoding
BaseNcoding copied to clipboard
BUG found
There is a huuuge bug here:
For example, if you enter "ap\n" ("ap" and NEW LINE) here:
http://kvanttt.github.io/BaseNcoding/
using Base=4096 and MaxBitCount=12 it will encode into:
ٚ+
which decodes back into "az" instead of its original value "ap\n" ("ap" and NEW LINE).
This bug is not related to web site character encoding nor new line differences between OSs (\r, \n vs \r\n) but it is easily reproducable with unit tests.