in reply to Convert a number to another number?

You have good explanations for how to accomplish what you asked about already. Without you telling us, though, I wonder why you need to do this.

What I see resembles the basis for a simple substitution cipher, which is not a very secure form of encryption. If securing data cryptographically is what you're trying to do you may find that asking about encryption techniques or modules that implement them might be more fruitful.

  • Comment on Re: Convert a number to another number?