aes algoritham implementation in c/cpp

Discussion in 'C' started by akshita12, Apr 24, 2009.

  1. akshita12

    akshita12 New Member

    Joined:
    Apr 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Indore,M.P.
    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:
     
  2. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
  3. akshita12

    akshita12 New Member

    Joined:
    Apr 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Indore,M.P.
    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...
     
  4. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    You haven't read the article. It's absolutely obvious you haven't.
     
  5. akshita12

    akshita12 New Member

    Joined:
    Apr 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Indore,M.P.
    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
     
  6. akshita12

    akshita12 New Member

    Joined:
    Apr 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Indore,M.P.
    plz reply wheneveru come back...
     
  7. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    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);
    
     
  8. akshita12

    akshita12 New Member

    Joined:
    Apr 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Indore,M.P.
    u mean to say i shuld insert a module which changes the user input into hexadecimal and then encrypts
     
  9. akshita12

    akshita12 New Member

    Joined:
    Apr 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Indore,M.P.
    hello sir ,r u there. plz i need ur guidence..
     
  10. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    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.
     
  11. akshita12

    akshita12 New Member

    Joined:
    Apr 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Indore,M.P.
    exactly my minor projct is"compression with file security", in which i hv to compress the text file and then encrypt it. i hav worked on compression and its is working fine. and nw i hav to add encryption to it but the program is not asking for file instead for hexadecimal input, i want the code to ask for the file from user. As u said hex input is ideal,but how a usr can input hex data?
     
  12. akshita12

    akshita12 New Member

    Joined:
    Apr 19, 2009
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Indore,M.P.
    u can take as a s/w which will first compress then then in next step will encrypt the file....
     
  13. xpi0t0s

    xpi0t0s Mentor

    Joined:
    Aug 6, 2004
    Messages:
    3,009
    Likes Received:
    203
    Trophy Points:
    63
    Occupation:
    Senior Support Engineer
    Location:
    England
    The user wouldn't enter hex data, what I would expect is that the encryption part of it would read the compressed file and encrypt that. So instead of prompting for input it should read the file that is the result of the first part.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice