Xceed Encryption Library Documentation
Encrypt Sample Application for Visual C++
Samples > Encrypt Sample Application for Visual C++

Description

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

Project path

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

Project file name: ENCRYPT.DSP

Demonstrates

Properties: EncryptionMode and EncryptionMethod

Method: WriteFile, ProcessFile, SetSecretKeyFromPassPhrase and SetRandomInitVector

How to use

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

Encrypt [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 input file name is omitted, the plain text input is read from the console.