Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   aes algoritham implementation in c/cpp (http://www.go4expert.com/forums/aes-algoritham-implementation-c-cpp-t17101/)

akshita12 24Apr2009 17:47

aes algoritham implementation in c/cpp
 
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...:nonod:

xpi0t0s 25Apr2009 13:48

Re: aes algoritham implementation in c/cpp
 
Top hit for "aes algorithm" in Google:
http://en.wikipedia.org/wiki/Advance...ption_Standard

akshita12 25Apr2009 13:55

Re: aes algoritham implementation in c/cpp
 
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 25Apr2009 13:57

Re: aes algoritham implementation in c/cpp
 
You haven't read the article. It's absolutely obvious you haven't.

akshita12 25Apr2009 14:16

Re: aes algoritham implementation in c/cpp
 
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 25Apr2009 14:27

Re: aes algoritham implementation in c/cpp
 
plz reply wheneveru come back...

xpi0t0s 25Apr2009 14:32

Re: aes algoritham implementation in c/cpp
 
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 25Apr2009 14:36

Re: aes algoritham implementation in c/cpp
 
u mean to say i shuld insert a module which changes the user input into hexadecimal and then encrypts

akshita12 25Apr2009 15:14

Re: aes algoritham implementation in c/cpp
 
hello sir ,r u there. plz i need ur guidence..

xpi0t0s 25Apr2009 15:52

Re: aes algoritham implementation in c/cpp
 
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.


All times are GMT +5.5. The time now is 06:26.