wolfssl-examples/crypto/3des
Chris Conlon b7eaf19a63 Merge pull request #53 from KincadePavich/master
DTLS: Removed whitespace, fixed memset warning // Crypto: Fixed RNG memory leaks
2017-05-31 16:25:11 -06:00
..
3des-file-encrypt.c fixed memory leak in rng and removed whitespaces 2017-05-19 11:29:44 -06:00
Makefile link in makefile and ignore exe 2015-02-09 18:40:16 -07:00
README Changed --enable-3des to --enable--des3 in README 2017-05-18 09:08:34 -06:00

README

How to use 3des-file-encrypt.c

1) a. Compile wolfSSL with ./configure --enable-pwdbased --enable-des3, run
      'make', and then install by typing 'sudo make install'.
   b. In the crypto/3des directory run the Makefile by typing 'make'.
2)  Make a file to encode. Can be any file (ex. .txt .in .out .file etc.)
3)  run the excecutable, for help run with -h flag. Basic command is as follows:
        ./3des-file-encrypt <-option> <KeySize> <input.file> <output.file>

        KeySize examples: 56, 112, or 168

    typing -e for option will encrypt the input.file onto the output.file.
    typing -d for option will decrypt the input.file onto the output.file.
        NOTE: When decrypting make sure the key is the same used for the
        encryption, otherwise it won't decode correctly. Which is the idea.
        Only those with the key will be able to decode the message. If no
        key is entered into the command line, it will use "0123456789abcdef"
        by default.

4)  Running 'make clean' will delete the excecutable as well as any created
    files. Making sure that the only files left are '3des-file-encrypt.c',
    'Makefile', and 'README'.