Delegate for displaying advancement. This is a delegate to
call a piece of code whenever a certain event happens on
the main computing loop.
Namespace: LLCryptoLibAssembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)
Syntax
C# |
---|
public delegate void CallbackPoint(
int p,
string message
) |
Visual Basic |
---|
Public Delegate Sub CallbackPoint ( _
p As Integer, _
message As String _
) |
Visual C++ |
---|
public delegate void CallbackPoint(
int p,
String^ message
) |
Parameters
- p
- Type: System..::..Int32
- message
- Type: System..::..String
Examples
CopyC#
CallbackPoint cbp = new CallbackPoint(FeedbackExample.UpdateCounter);
StreamARC4512 cryptAlgorithm = LLCryptoLib.Crypto.StreamAlgorithmFactory.ArcFour512;
LLCryptoLib.Crypto.StreamCrypter crypter = new StreamCrypter(cryptAlgorithm);
crypter.GenerateKeys("password");
string encryptedFile = rndFile.FullName + ".enc";
crypter.EncryptDecrypt(rndFile.FullName, encryptedFile, true, cbp);
Console.WriteLine("File encrypted into " + encryptedFile);
See Also