Security
Générateur de codes TOTP / HOTP hors ligne
Génère des mots de passe à usage unique TOTP RFC 6238 (6/8 chiffres, 30/60 s) et HOTP RFC 4226 (par compteur) à partir d’un secret base32, hors ligne, avec HMAC-SHA1/256/512, et exporte une URI otpauth://
Démarrage rapide
Appelez cet outil depuis votre code en trois langages.
curl -X POST 'https://api.elysiatools.com/fr/api/tools/totp-hotp-offline-generator' \
-H 'Content-Type: application/json' \
-d '{"secret":"JBSWY3DPEHPK3PXP","mode":"totp","algorithm":"sha1","digits":6,"period":30,"counter":0,"preview":5,"issuer":"Acme","account":"[email protected]"}'Référence de l'API
Envoyez une requête POST avec vos entrées en JSON. Les paramètres de type fichier nécessitent un upload préalable.
Point d'accès
POST https://api.elysiatools.com/fr/api/tools/totp-hotp-offline-generatorParamètres
| Nom | Type | Requis | Description |
|---|---|---|---|
| secret | text | Oui | — |
| mode | select | Non | — |
| algorithm | select | Non | — |
| digits | select | Non | — |
| period | select | Non | — |
| counter |
Intégration MCP
Ajoutez cet outil à votre serveur Model Context Protocol pour que les agents IA puissent le lister et l'appeler.
Configuration du serveur
Ajoutez ce bloc à la configuration de votre client MCP :
{
"mcpServers": {
"elysiatools-totp-hotp-offline-generator": {
"name": "totp-hotp-offline-generator",
"description": "Génère des mots de passe à usage unique TOTP RFC 6238 (6/8 chiffres, 30/60 s) et HOTP RFC 4226 (par compteur) à partir d’un secret base32, hors ligne, avec HMAC-SHA1/256/512, et exporte une URI otpauth://",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=totp-hotp-offline-generator",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Lister les outils disponibles
Après connexion au point d'accès SSE, listez les outils exposés :
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Appeler cet outil
Appelez l'outil par son id ; les arguments sont construits à partir de ses paramètres :
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "totp-hotp-offline-generator",
"arguments": {
"secret": "JBSWY3DPEHPK3PXP",
"mode": "totp",
"algorithm": "sha1",
"digits": 6,
"period": 30,
"counter": 0,
"preview": 5,
"issuer": "Acme",
"account": "[email protected]"
}
}
}