secure_token_hex
Generate cryptographically secure random hexadecimal tokens for secure authentication, API keys, or session IDs. Specify the number of bytes to customize token length.
Instructions
Generate a secure random hex token.
Args: nbytes: Number of random bytes to generate (default 32)
Returns: Hex string containing 2*nbytes characters
Input Schema
Name | Required | Description | Default |
---|---|---|---|
nbytes | No |
Input Schema (JSON Schema)
{
"properties": {
"nbytes": {
"default": 32,
"title": "Nbytes",
"type": "integer"
}
},
"type": "object"
}