I have a question about public key encryption.
Say I have a string: "Hello, everyone."
If I am choosing to use a cipher to encode/encrypt this by just shifting the letters around X places, it is easy to figure out what the key is due to things in the english language like LL, OO, etc.
Taking a key into consideration, which could be a string or a number or whatever else, how does this incorporate into the code I'm writing to make my plain-text string encrypted in such a way that it isn't possible to discern patterns in the encrypted text?