Encrypt File and Save Encrypted Output to a String
Encrypt File and Save as String
Make sure pfEncryptor is started and you are on the main form.
See Encryption Definition Form for a description of the various fields on the form.
WARNING: Do not output the contents of a very large file to an encrypted string. This can cause Out of Memory errors that will cause pfEncryptor to fail.
In the Encrypt portion of the main form:
- Click Encrypt File to identify this as a file encryption.
- Select the type of encryption to use: AES or TDES or DES.
- See Encryption Algorithms for a description of the encryption standards used by this application..
- Specify the Key and IV to use for this encryption.
- If you have some previously saved key and IV combination that you wish to use:
- Click Load Key/IV From File button.
- Select the folder and file containing the key you wish to use and press the Open button.
- If you want to generate a new random key, click the Generate Random Key/IV button.
- You will see strings of random characters in the Key and IV fields.
- If you know the key you wish to use, you can type the key and IV directly to the Key and IV fields on the Encryption Definition Form.
- (Optional) If you are using a new key you plan to use in the future for other encryptions:
- Click the Save Key/IV To File button.
- Specify the folder and file name using the Save File Dialog that shows.
- Click the Save button.
- Specify the file to be encrypted.
- Click the Source Button to show a File Open Dialog.
- Select Save Encrypted Output to String option button to save output to a string.
- Leave the Encrypted Output text box empty.
- The encrypted text resulting from the Encrypt operation will be placed in this field..
- Click the Encrypt Button.
- The encrypted output will be displayed in the Encrypted Output field.
- (Optional) You can use the Output Button to show the encrypted data in a larger popup text box.
- (Optional) Click the Save button to save the Encryption Definition to a file.
- To use this saved Encryption Definition at some later time, use the Load button to open and load the saved definition to the Encrypt form.
- See Open Saved Encryption Definition for information rerunning a previously defined encryption.
- (Optional) Click the New button to clear the Encryption Definition Form and start a new definition.