1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

aes algoritham implementation in c/cpp

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

  1. akshita12

    akshita12 New Member

    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

  3. akshita12

    akshita12 New Member

    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

    You haven't read the article. It's absolutely obvious you haven't.
     
  5. akshita12

    akshita12 New Member

    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

    plz reply wheneveru come back...
     
  7. xpi0t0s

    xpi0t0s 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);
    
     
  8. akshita12

    akshita12 New Member

    u mean to say i shuld insert a module which changes the user input into hexadecimal and then encrypts
     
  9. akshita12

    akshita12 New Member

    hello sir ,r u there. plz i need ur guidence..
     
  10. xpi0t0s

    xpi0t0s 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.
     
  11. akshita12

    akshita12 New Member

    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

    u can take as a s/w which will first compress then then in next step will encrypt the file....
     
  13. xpi0t0s

    xpi0t0s Mentor

    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