S-BOX DES style question for encryption assignment

Newbie here, have a question here, screenshot attached where by plaintext is applied to a block cipher using sboxes and permutation network. The specifications are in the picture.
what I am stuck on is as follows;
1) 7049c and 30f75 do these need to be converted into binary first and then applied to the system?
2) For the SBOX mapping do these need to be turned into binary first or how they turned into the table as outlined in the link below;
http://en.wikipedia.org/wiki/S-box

thanks in advance

screenshot1.jpg
LVL 1
jtiernan2008Asked:
Who is Participating?
 
Kelvin_KingCommented:
Hi there,

As this is an assignment question, please be aware that we cannot post exact code implementations.

1. Yes, you'll have to convert it into binary first, use Windows calculator to do it, and be aware of the most significant bit.

2. For the SBOX mapping, the simplest way I see you can do it is to use an array like this

int nSbox[16] = {9, 6, 5, 10 .......} ;

When you split your binary input into equal parts of 4...

Say for example, your first block is 1101

1101 = '13'

Look up 13 in the array and your answer is '15'

Convert '15' back to binary if necessary.

Hope that helps.
0
 
jtiernan2008Author Commented:
the full pdf is as also attached below;
ET4427-2Assignment-2-9938516.pdf
0
 
jtiernan2008Author Commented:

So, just to make sure I got ye, I convert 7049c into binary giving 01110000010010011100 then I split up into equal parts of 4 and follow your instructions above? Next I do the same for 30f75..
0
Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

 
jtiernan2008Author Commented:
Also, I take it that 7049c is Hex?
0
 
Kelvin_KingCommented:
Yep, 7049C is HEX

What language are you supposed to implement this in?
0
 
jtiernan2008Author Commented:
java
0
 
Kelvin_KingCommented:
OK, here's a Java hex to binary converter for your reference.

http://www.roseindia.net/java/java-conversion/HexadecimalToBinaryAndLong.shtml
0
 
jtiernan2008Author Commented:
Excellent put - thanks a million
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.