Class CryptoTool
A built-in tool for cryptographic operations.
Provides AES encryption/decryption, key generation, and secure random data.
public sealed class CryptoTool : ITool
- Inheritance
-
CryptoTool
- Implements
- Inherited Members
Examples
var tool = new CryptoTool();
registry.Register(tool);
// Agent can now: encrypt/decrypt data, generate keys, create secure tokens
Remarks
Uses AES-256-GCM for authenticated encryption when available, falls back to AES-256-CBC with HMAC on older platforms.
Properties
- Description
Gets a concise description of what the tool does.
- InputSchema
Gets the JSON Schema defining the expected input arguments.
- Name
Gets the stable, unique identifier for this tool.
Methods
- InvokeAsync(string, CancellationToken)
Executes the tool with the specified JSON arguments.