An LLM asked to encrypt data will produce something that looks encrypted but provides zero actual security. Cryptographic operations require precise algorithm execution with proper key material. These tools provide real encryption and decryption.
All Crypto Tools (11)
Your agent gets access to 11 crypto tools via the /mcp/crypto/ endpoint. Here's the complete list:
| Tool | Description |
|---|---|
crypto/hmac | Generate Hmac |
crypto/checksum/md5 | Md5 Checksum |
crypto/checksum/sha1 | Sha1 Checksum |
crypto/checksum/sha256 | Sha256 Checksum |
crypto/checksum/sha512 | Sha512 Checksum |
crypto/entropy | Password Entropy |
crypto/random-bytes | Random Bytes |
crypto/constant-time-compare | Constant Time Compare |
crypto/hash-verify | Verify Hash |
crypto/crc32 | Crc32 Checksum |
crypto/adler32 | Adler32 Checksum |
Agent Scenarios
Here's how real agents use these tools:
1. Data protection agent
A compliance agent encrypts sensitive PII before storing it. Real AES encryption, not pretend encryption.
crypto/encrypt
{ "text": "sensitive data", "key": "encryption-key" }
2. Key management agent
A setup agent generates cryptographically secure keys for application configuration.
crypto/generate-key
{ "length": 32 }
3. Secure messaging agent
A communication agent decrypts messages received from external systems.
crypto/decrypt
{ "ciphertext": "...", "key": "decryption-key" }
MCP Setup
Add crypto tools to your agent in under 2 minutes. Choose your client:
Claude Desktop / Claude Code
Add this to your MCP config:
{
"mcpServers": {
"tinyfn-crypto": {
"url": "https://api.tinyfn.io/mcp/crypto/",
"headers": {
"X-API-Key": "your-api-key"
}
}
}
}
Cursor
Go to Settings > MCP and add a new server:
- Type: SSE
- URL:
https://api.tinyfn.io/mcp/crypto/sse - Headers:
X-API-Key: your-api-key
Tip: Use the category-specific endpoint (/mcp/crypto/) for the best experience. The all-in-one endpoint (/mcp/all/) works too but has 500+ tools which some clients handle less efficiently.
When to Use These Tools
Use crypto MCP tools when your agent needs to:
- Guarantee correctness — when wrong answers have real consequences
- Process user data — when you're operating on actual user input, not hypothetical examples
- Maintain consistency — when the same input must always produce the same output
You don't need these tools for casual conversation or rough estimates. Use them when precision matters.
Ready to add crypto tools to your agent?
Get Free API Key 100 requests/month free. No credit card required.Frequently Asked Questions
Can LLMs perform real encryption?
No. LLMs generate text that may look like ciphertext but provides no actual cryptographic security. Real encryption requires executing precise algorithms with proper key material and randomness.
What encryption algorithms does TinyFn support?
TinyFn provides AES encryption/decryption, secure key generation, and related cryptographic utilities.
Is TinyFn suitable for production encryption?
TinyFn's crypto tools use standard Python cryptographic libraries. For production use with sensitive data, evaluate whether server-side encryption meets your compliance requirements.