Thread: DES in C

  1. #1
    Registered User
    Join Date
    Jul 2014
    Posts
    2

    DES in C

    I learned the bitwise operations in c, but i still cann't figure out how to shuffle the bits of the plain text accoring to DES's standard. Even with the key and the S-boxes. If someone could explain to me how DES is performed in C step by step.


    P.S: I have a fair knowledge in C.

  2. #2
    Master Apprentice phantomotap's Avatar
    Join Date
    Jan 2008
    Posts
    5,108
    O_o

    The algorithm is language agnostic. The algorithm is performed the same in every language.

    You are asking for code. We don't do that. Post your code from what you've tried, or you may feel free to search the web for code.

    Soma
    “Salem Was Wrong!” -- Pedant Necromancer
    “Four isn't random!” -- Gibbering Mouther

  3. #3
    Registered User
    Join Date
    Jul 2014
    Posts
    2
    I am not asking for C code for the algorithm, i am just asking for an explanation in terms of C. . For example if the user enters the plaintext (64-bit), how am i supposed to know which are the lowest 8-bits, and then how can i perform the initial permutation, i.e how can i shuffle the bits in the way DES does.

  4. #4

Popular pages Recent additions subscribe to a feed

Tags for this Thread