Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

A Quick question on DES.

  • 23-05-2002 01:14PM
    #1
    Closed Accounts Posts: 5,563 ✭✭✭


    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, Registered Users 2 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, Registered Users 2 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