Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Niidae Wiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Chosen-plaintext attack
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Page information
Appearance
move to sidebar
hide
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!
==Examples== The following examples demonstrate how some ciphers that meet other security definitions may be broken with a chosen-plaintext attack. ===Caesar cipher=== The following attack on the [[Caesar cipher]] allows full recovery of the secret key: # Suppose the adversary sends the message: {{code|Attack at dawn}}, # and the oracle returns {{code|Nggnpx ng qnja}}. # The adversary can then work through to recover the key in the same way as a Caesar cipher. The adversary could deduce the substitutions {{nowrap|{{code|A}} β {{code|N}}}}, {{nowrap|{{code|T}} β {{code|G}}}} and so on. This would lead the adversary to determine that 13 was the key used in the Caesar cipher. With more intricate or complex encryption methodologies the decryption method becomes more resource-intensive, however, the core concept is still relatively the same. ===One-time pads=== The following attack on a [[one-time pad]] allows full recovery of the secret key. Suppose the message length and key length are equal to {{var|n}}. # The adversary sends a string consisting of {{var|n}} zeroes to the oracle. # The oracle returns the [[Bitwise operation|bitwise]] [[Exclusive or|exclusive-or]] of the key with the string of zeroes. # The string returned by the oracle ''is'' the secret key. While the one-time pad is used as an example of an [[information-theoretically secure]] cryptosystem, this security only holds under security definitions weaker than CPA security. This is because under the formal definition of CPA security the encryption oracle has no state. This vulnerability may not be applicable to all practical implementations β the one-time pad can still be made secure if key reuse is avoided (hence the name "one-time" pad).
Summary:
Please note that all contributions to Niidae Wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Search
Search
Editing
Chosen-plaintext attack
(section)
Add topic