Question: Projectl: Breaking a Simple Cipher In this project, you will break a simple cipher, referred to as SC - 1 , by obtaining the key.
Projectl: Breaking a Simple Cipher
In this project, you will break a simple cipher, referred to as SC by obtaining the key.
SC is a bit block cipher, using bit keys. Capital letters like A B C will be used to
denote bit values. Suppose A is a bit data item. The bits in A will be referred to as a
dots, and a is the least significant bit the rightmost bit The bit value can
also be considered as bytes, which are denoted as dots, is the
rightmost byte. So the eight bits in A are a a a a a; the eight bits in A are
a a a a a and so on
Let be the key of bytes and the plaintext block. Note that there are bytes in and is
the first byte in the plaintext stream. SC works as follows.
Compute where is bitwise exclusive or XOR
di pi where dots
Compute where is rotate left operation.
Perform SBox on each byte of to produce the ciphertext
SBoxSBoxdots,SBox
The SBox used in Step is the same as the SBox in AES. It maps a byte to another byte.
As in the current format, SC is not secure Suppose you know the following pair of plaintext
and ciphertext, find out the key used in the encryption.
Plaintext : FEFDBDB
Ciphertext: AAAEADAF
An implementation of the cipher in PHP is provided. You can check the source code and know
the details of the cipher. You can also verify the key you have obtained.
Submit a report in PDF format in which you describe how you obtain the key. Make sure write
down your name on your report.
Extra questions
Do not include the extra questions in your report.
Can you still break SC if it is revised in the following ways?
The rotation amount in Step depends on the key.
The rotation is Step is replaced by a bit permutation that depends on the key.
Steps to are repeated one more time with for the second round
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
