grempe / secrets.js

Secret sharing for javascript
MIT License
289 stars 73 forks source link

`radix` doesn't appear used, as bin2hex is hard-coded to 16 #95

Closed mortoray closed 3 years ago

mortoray commented 3 years ago

I'm unclear on what the radix is used for, since bin2hex is hard-coded to use 16 as the radix. How can I get output that is base 36 encoded?

I tried playing around with various parts of the code, changing 16 -> radix, but not having much luck.

grempe commented 3 years ago

I don't think radix is exposed anywhere as a configurable value so it should be thought of as a constant. Other output/input formats, other than what is documented, are not supported at this time.

Cheers.