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.
- Host: GitHub
- URL: https://github.com/delhatch/des_decrypt
- Owner: delhatch
- Created: 2018-03-14T20:07:08.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-03-20T17:30:35.000Z (over 8 years ago)
- Last Synced: 2025-01-13T01:43:39.595Z (over 1 year ago)
- Topics: c, des-decrypt
- Language: C++
- Homepage:
- Size: 263 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.