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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jtiernan2008Author Commented:
the full pdf is as also attached below;
ET4427-2Assignment-2-9938516.pdf
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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..
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

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

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

http://www.roseindia.net/java/java-conversion/HexadecimalToBinaryAndLong.shtml
jtiernan2008Author Commented:
Excellent put - thanks a million
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Encryption

From novice to tech pro — start learning today.