BaseNcoding icon indicating copy to clipboard operation
BaseNcoding copied to clipboard

BUG found

Open mikperic opened this issue 9 years ago • 0 comments

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.

mikperic avatar Mar 01 '16 12:03 mikperic