So a license code can contain 189 bits or 24 bytes.

But we employ here Python's capability of bignums.
Can we calculate this using real/floating numbers?
Like, in pure C?

Let's use the fact that \( log_{26}(total) = 40 \).
To convert a logarithm of a number in base X to logarithm in base Y, multiply it by \( \frac{log(X)}{log(Y)} \).

Yes, I know about these lousy Disqus ads.
Please use adblocker.
I would consider to subscribe to 'pro' version of Disqus if the signal/noise ratio in comments would be good enough.