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

Posted by mark on Stack Overflow See other posts from Stack Overflow or by mark
Published on 2010-05-16T08:13:55Z Indexed on 2010/05/16 8:20 UTC
Read the original article Hit count: 136

Filed under:
|

Dear ladies and sirs.

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

This question is inspired by my previous question - http://stackoverflow.com/questions/2827627/what-is-the-most-efficient-way-to-encode-an-arbitrary-guid-into-readable-ascii-3

Thanks.

© Stack Overflow or respective owner

Related posts about .NET

Related posts about algorithm