Class CryptoKeygenTool
A built-in tool for generating cryptographic keys, IVs, and secure random data.
Provides key generation, IV generation, PBKDF2 key derivation, secure random bytes, and URL-safe token generation.
public sealed class CryptoKeygenTool : IBuiltInTool, ITool, IToolMetadata
- Inheritance
-
CryptoKeygenTool
- Implements
- Inherited Members
Examples
var tool = new CryptoKeygenTool();
registry.Register(tool);
// Agent can now: generate keys, IVs, derive keys, create random bytes/tokens
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.