Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

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?

share|improve this question
add comment

closed as off topic by Jeff Ferland Oct 2 '12 at 15:05

Questions on Information Security Stack Exchange are expected to relate to Information security within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

You are using the term "cipher" with the meaning it had up to, say, 1860. While this would be quite appropriate in case of a quick chat with queen Victoria, it so happens that Science has advanced a tiny bit since these times.

Your question is is rather broad since it is, mostly: "that field of cryptography which has occupied thousands of researchers for more than four decades, well, how does it work ?". This cannot be answered within the size constraints of this site. Well, I can tell that "it works pretty well" but, beyond that, you are in need of some introductory material on cryptography. For instance, this book, which is not bad, as far as these things go.

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.