saxbophone / basest-python

Arbitrary base binary-to-text encoder (any base to any base), in Python.
https://pypi.org/project/basest/
Mozilla Public License 2.0
6 stars 0 forks source link

Add validation to best_ratio() and encode_raw() #28

Closed saxbophone closed 6 years ago

saxbophone commented 6 years ago

This validation protects against:

Note: no need to protect decode_raw() in the equivalent way as this function cannot corrupt data (data is only corrupted on encoding when bad options are chosen).

Closes #22