Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
RSA cryptosystem
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===Encryption=== After Bob obtains Alice's public key, he can send a message {{mvar|M}} to Alice. To do it, he first turns {{mvar|M}} (strictly speaking, the un-padded plaintext) into an integer {{mvar|m}} (strictly speaking, the [[Padding (cryptography)|padded]] plaintext), such that {{math|0 ≤ ''m'' < ''n''}} by using an agreed-upon reversible protocol known as a [[#Padding schemes|padding scheme]]. He then computes the ciphertext {{mvar|c}}, using Alice's public key {{mvar|e}}, corresponding to <math display="block">c \equiv m^e \pmod{n}.</math> This can be done reasonably quickly, even for very large numbers, using [[modular exponentiation]]. Bob then transmits {{mvar|c}} to Alice. Note that at least nine values of {{mvar|m}} will yield a ciphertext {{mvar|c}} equal to {{mvar|m}},{{efn|Namely, the values of {{mvar|m}} which are equal to β1, 0, or 1 modulo {{mvar|p}} while also equal to β1, 0, or 1 modulo {{mvar|q}}. There will be more values of {{mvar|m}} having {{math|1=''c'' = ''m''}} if {{math|''p'' β 1}} or {{math|''q'' β 1}} has other divisors in common with {{math|''e'' β 1}} besides 2 because this gives more values of {{mvar|m}} such that <math>m^{e-1} \bmod p = 1</math> or <math>m^{e-1} \bmod q = 1</math> respectively.}} but this is very unlikely to occur in practice.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)