indutny / bn.js

BigNum in pure javascript
MIT License
1.19k stars 150 forks source link

Base64 encoding #293

Open ryanc414 opened 2 years ago

ryanc414 commented 2 years ago

I see that there is an option for hex encoding via .toJSON() or .toString(16), but how about base64 encoding - is that supported at all? Is it possible to extract the bytes in a form that may be passed to btoa()?