Skip to content

BUG found #24

@mikperic

Description

@mikperic

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions