2011-08-16

[Script] des.py - Data Encryption Standard

Links
Download (des.py): http://www.mediafire.com/?193ngwc7lbd9wbu


What is this?
A python script to show the process of encrypting & decrypting using "Data Encryption Standard" (DES) step by step.


Screenshot
Figure 1 - "Variable" Flowchart

DES - Figure 2 - Console output [Encryption]

DES - Figure 3 - Console output [Decryption]


Examples
python des.py
python des.py -a enc -k 02468ACE -m "HelloWord"
python des.py -a dec -k 02468ACE -m fb37a0c2d860b89630c7618b0df81564
python des.py -a enc -k 1a2b3c4d -m "Have you... g0tmi1k?" -v


References
http://www.tropsoft.com/strongenc/des.htm
http://orlingrabbe.com/des.htm



~g0tmi1k

2 comments:

  1. The script does the reverse?
    example: in HEX'd:686176652e796f75
    out Key - Plain text: have.you

    Thank you to answer

    ReplyDelete
  2. @Azure
    It should do =)
    There are a couple of examples (commands and screenshots) showing it in action(encrypting and decrypting).

    ReplyDelete