How to convert from base-256 to base-N, where N is greater than 16?

I need to convert an array of bytes to another base, namely 85. In mathematical terms, the question is, how is it most efficient to convert from base-256 to base-85?

This question is inspired by my previous question - What is the most efficient way to encode an arbitrary GUID into readable ASCII (33-127)?

Thanks.

+4
source share

Source: https://habr.com/ru/post/1309901/


All Articles