In encryption methods like RSA, we operate on an integer which represents our message. I've toyed around with converting the string to an array of bytes and working one character at a time, but that seems overly slow and the RSA algorithm is designed to work with the entire message.

How do we convert a string to a representation (integer, big integer etc) in which we can apply our cryptographic algorithm too?