Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

A Quick question on DES.

Options
  • 23-05-2002 1:14pm
    #1
    Closed Accounts Posts: 5,564 ✭✭✭


    When you are inputting "plaintext" to a des algorithm is it the case that the text is in for example this format
    1."Your lips are smoother than vaseline"
    or this format
    2."596F7572206C6970 732061726520736D 6F6F746865722074 68616E2076617365 6C696E650D0A0000"

    and consquently is the output block against this key "0E329232EA6D0D73"

    this
    1."C0999FDDE378D7ED 727DA00BCA5A84EE 47F269A4D6438190 D52F78F5358499 828AC9B453E0E653".
    or
    2. The ascii equivalent of the above?

    'Cuidado con el Gato'


Comments

  • Registered Users Posts: 430 ✭✭timod


    here's what I do to encrypt it...
    (with openssl on linux)
    echo "Your lips are smoother than vaseline" | /usr/local/ssl/bin/openssl des -a -A -k 0E329232EA6D0D73

    Which encrypts it as:
    U2FsdGVkX1+VJ8uT3wvkKO9UN6D68507CJc+5fRMWBisiiNxmFvOmJXW53ZE7XhqYMEsjEYHR7A=
    To decrypt:
    echo U2FsdGVkX1+VJ8uT3wvkKO9UN6D68507CJc+5fRMWBisiiNxmFvOmJXW53ZE7XhqYMEsjEYHR7A= | /usr/local/ssl/bin/openssl des -d -a -A -k 0E329232EA6D0D73

    Not sure if this helps...

    Tim


  • Registered Users Posts: 430 ✭✭timod


    ....although DES is only 56bits, so it's not secure...

    Best to use 3DES (192 bits), Blowfish (448bits), or Idea (128 bits)

    (I could be wrong with some of those figures)

    RSA offers 1024 bit encryption which should do fine :).... but openssl doesn't seem to offer it for text encryption... which is wierd, coz it does create 1024 bit RSA SSL certificates.


Advertisement