Xceed Encryption Library Documentation
Samples / Decrypt Sample Application for Visual C++
In This Topic
    Decrypt Sample Application for Visual C++
    In This Topic

    Description

    This sample demonstrates how to decrypt a file using the Rijndael and Twofish encryption methods.

    Project path

    Project path: SAMPLES\VISUAL C++ 6-7\DECRYPT

    Project file name: DECRYPT.DSP

    Demonstrates

    Properties: EncryptionMode and EncryptionMethod

    Method: ReadFile, ProcessFile, SetSecretKeyFromPassPhrase and SetRandomInitVector

    How to use

    This sample is a console application that takes at least two parameters (the input file name and the pass phrase) to perform decryption. The sample's command-line usage specifications are:

    Decrypt [options] input_file pass_phrase [output_file]

    The parameters between brackets are optional. The option parameter can be used to specify the encryption method. If omitted, this option is set to AES (Rijndael). If the output file name is omitted, the decrypted text is sent to the screen.