aes algoritham implementation in c/cpp

akshita12's Avatar, Join Date: Apr 2009
Light Poster
hi ,
i am new here. i need a favour if anybody could provide me with the source code of either aes/des algoritham. i ned it for my minor project and th deadlin is about to approach. plz help me...
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Top hit for "aes algorithm" in Google:
http://en.wikipedia.org/wiki/Advance...ption_Standard
akshita12's Avatar, Join Date: Apr 2009
Light Poster
thanku for ur reply, but i am looking for the coding, i have read the Wikipedia but i cant do the coding part, plz help me to find its coding...
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
You haven't read the article. It's absolutely obvious you haven't.
akshita12's Avatar, Join Date: Apr 2009
Light Poster
i have used the last link given in C/ASM library section of this article, but it is creating problem as it is asking for hexadecimal i/p from user
akshita12's Avatar, Join Date: Apr 2009
Light Poster
plz reply wheneveru come back...
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
What sort of problems is it creating?
Simply translate what you want to input into hexadecimal and that should be that, no?
Or tweak the input routine to accept whatever you want to enter, then convert it into hex.
e.g. if the code is currently something like
Code:
printf("Enter hex string :");
char buf[32];
fgets(buf,30,stdin);
process_hex(buf);
you could do something like:
Code:
printf("Enter text string :");
char txt[15];
fgets(txt,14,stdin);
char buf[32];
convert2hex(txt,buf); // trivial to write
process_hex(buf);
akshita12's Avatar, Join Date: Apr 2009
Light Poster
u mean to say i shuld insert a module which changes the user input into hexadecimal and then encrypts
akshita12's Avatar, Join Date: Apr 2009
Light Poster
hello sir ,r u there. plz i need ur guidence..
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
I don't understand where you're stuck. If the program asks for hex input, why is that a problem? I would have thought hex input was ideal, so please explain to me, in detail, what the problem is.