FileEncryption.Encrypt Method
Namespace: Rebex.Security
Assembly: Rebex.Security.dll (version 7.0.9448)
Encrypt(String, String)
Encrypts a source file into a target file.
Declaration
public void Encrypt(string sourceFile, string targetFile)
Parameters
| Type | Name | Description |
|---|---|---|
| String | sourceFile | The file to encrypt. |
| String | targetFile | The name of the encrypted file. This cannot be a directory. |
Encrypt(Stream, Stream)
Encrypts data from a source stream into a target stream.
Declaration
public void Encrypt(Stream sourceStream, Stream targetStream)
Parameters
| Type | Name | Description |
|---|---|---|
| Stream | sourceStream | Readable stream with input data. |
| Stream | targetStream | Writable stream that will receive the encrypted data. |