CipherEncryptFile Method
Creates an encrypted file from source file data.
Namespace: Gemstone.Security.CryptographyAssembly: Gemstone.Security (in Gemstone.Security.dll) Version: 1.0.147 -- Release Build+3014b8a0edc553e56f868ef31b6f0f5012f8db4f
public static void EncryptFile(
string sourceFileName,
string destinationFileName,
string password,
CipherStrength strength,
Action<ProcessProgress<long>> progressHandler
)
Public Shared Sub EncryptFile (
sourceFileName As String,
destinationFileName As String,
password As String,
strength As CipherStrength,
progressHandler As Action(Of ProcessProgress(Of Long))
)
public:
static void EncryptFile(
String^ sourceFileName,
String^ destinationFileName,
String^ password,
CipherStrength strength,
Action<ProcessProgress<long long>^>^ progressHandler
)
Gemstone.Security.Cryptography.Cipher.EncryptFile = function(sourceFileName, destinationFileName, password, strength, progressHandler);
Parameters
- sourceFileName String
- Source file name.
- destinationFileName String
- Destination file name.
- password String
- User password used for key lookup.
- strength CipherStrength
- Cryptographic strength to use when encrypting file.
- progressHandler ActionProcessProgressInt64
- Optional delegate to handle progress updates for encrypting large files.