An open API service indexing awesome lists of open source software.

https://github.com/delhatch/des_decrypt

C code DES decryption. Takes an encrypted file along with a file containing a DES key, and outputs the plaintext file.
https://github.com/delhatch/des_decrypt

c des-decrypt

Last synced: about 2 months ago
JSON representation

C code DES decryption. Takes an encrypted file along with a file containing a DES key, and outputs the plaintext file.

Awesome Lists containing this project

README

          

# DES_decrypt

Author

Del Hatch

** DES decryption software

The purpose of this project is to create an easy-to-run executable that will perform DES decryption on a binary file. The output is written to a user-specified binary file.

A pre-compiled executable for Windows machines is also provided.

** Inputs

The command-line executable requires three parameters, in this order:

1) The name of the file containing the DES key. This must be an 8-byte long hex file. See the file key.hex as an example.

2) The name of the encrypted data input file. This must be a binary file. See the file test.hex as an example.

3) The name of an output file. The cleartext results will be written to this file, as binary data. NOTE: This program will over-write (delete) any pre-existing file with the same name.

EXAMPLE:

>des_decrypt.exe key.hex test.hex output.hex

** Miscellaneous

The provided test.hex file, when decrypted with the included key.hex file, will (properly) result in clear text of all zeros.

Note that the included des_test_vectors.txt file contains DES test vectors. The files I provide (test.hex/key.hex) are the first decryption test vector.