Generador de ID y secreto de cliente

Genera ID de cliente OAuth y secretos aleatorios en el navegador con prefijo, longitud y cantidad configurables.

// about

Sobre esta herramienta

Esta herramienta genera localmente ID de cliente y secretos aleatorios. Úsala para desarrollo y pruebas y guarda los secretos en un almacén seguro.

Cómo usarla

  1. Introduce el prefijo, la longitud del secreto y la cantidad.
  2. Pulsa Generar y revisa los ID y secretos creados.
  3. Copia el resultado en un almacén seguro; un secreto borrado no se puede recuperar.

Por qué usar esta herramienta

  • Crea varias credenciales con un prefijo personalizado en segundos.
  • Elige una longitud de secreto de 24 a 128 caracteres.
  • La generación ocurre en el navegador y no se envía al servidor.

Preguntas frecuentes (FAQ)

¿Se guardan las credenciales?

No. Se generan en el navegador y la página no guarda el resultado.

¿Cuál es la longitud máxima?

Puedes elegir entre 24 y 128 caracteres.

¿Puedo usarlas en producción?

Úsalas para desarrollo y pruebas. En producción, sigue la política del proveedor y utiliza un almacén gestionado.

Guías · Seguridad · 8 min de lectura

Cómo crear una contraseña segura: longitud, entropía y gestores de contraseñas

Reglas como «incluye al menos un carácter especial» son conocidas, pero lo que de verdad hace fuerte una contraseña es el azar y la longitud. Hacer las cuentas muestra con claridad por qué algunas contraseñas son débiles.

Los atacantes usan tres métodos principales: el relleno de credenciales, que reutiliza usuarios y contraseñas filtrados de otros sitios; los ataques de diccionario, que prueban contraseñas y palabras comunes; y la fuerza bruta, que prueba todas las combinaciones.

6 dígitos                          : 6 × log2(10)  ≈ 20 bits
16 minúsculas aleatorias           : 16 × log2(26) ≈ 75 bits
12 caracteres aleatorios de 94     : 12 × log2(94) ≈ 79 bits
16 letras y dígitos aleatorios     : 16 × log2(62) ≈ 95 bits
Cómo calcular la entropía de una contraseña, por qué la longitud supera a las reglas de complejidad, qué patrones evitar y cómo usar un gestor de contraseñas.
Leer guía →
Créalo con IA

Crea esta herramienta tú mismo con IA

¿Quieres tu propia versión? Copia el prompt en un chat de IA o guarda el archivo de skill para un agente de programación. Incluyen las funciones, casos límite y pruebas que usamos al crearla.

El prompt y la skill están en inglés, que las herramientas de IA entienden perfectamente.

Prompt de instrucciones para IA

Pégalo tal cual en Claude, ChatGPT o Gemini.

You are an experienced full-stack web developer. Build a web tool called "Generador de credenciales de cliente" that meets the requirements below.

## Goal

Build a tool that securely generates client IDs and client secrets for API integrations.

## Core features

- Client IDs with a prefix (e.g. app_)
- Secrets with selectable length and character set
- Base64URL or hex output
- Preview as .env variables
- Copy each item

## Inputs

- Prefix, secret length in bytes, output format

## Outputs

- Client ID
- Client secret
- .env formatted text

## Edge cases and handling rules

- Recommend at least 32 bytes for secrets
- Never send or store generated values on a server
- Use only URL- and header-safe characters
- Warn that values disappear on refresh

## Implementation requirements

- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.
- Make the UI responsive and easy to use on mobile; label every input and keep everything keyboard accessible.
- Add a Copy button for results and show clear, friendly error messages for invalid input.
- Keep the core logic in functions separate from the UI so it can be unit-tested.

## Definition of done (test cases)

- A 32-byte Base64URL secret is 43 characters without padding
- Consecutive values differ
- IDs start with the chosen prefix

First outline your implementation plan in at most five lines, then write the complete code, and finally explain how to check the test cases above.

Skill (SKILL.md)

Guárdalo como .claude/skills/build-client-credential-generator/SKILL.md para que agentes como Claude Code lo reutilicen cada vez que crees o cambies la herramienta.

---
name: build-client-credential-generator
description: Use when building or changing a Generador de credenciales de cliente tool. Build a tool that securely generates client IDs and client secrets for API integrations.
---

# Build: Generador de credenciales de cliente

## Goal

Build a tool that securely generates client IDs and client secrets for API integrations.

## Workflow

1. Review the required features, inputs and outputs below and ask about anything missing first.
2. Implement the core logic as pure functions separate from the UI.
3. Check the logic against the test cases in the verification list.
4. Build a responsive UI with an input form, a result area and a Copy button.
5. Reproduce each edge case listed under Rules and refine the error messages.

## Core features

- Client IDs with a prefix (e.g. app_)
- Secrets with selectable length and character set
- Base64URL or hex output
- Preview as .env variables
- Copy each item

## Inputs

- Prefix, secret length in bytes, output format

## Outputs

- Client ID
- Client secret
- .env formatted text

## Rules

- Recommend at least 32 bytes for secrets
- Never send or store generated values on a server
- Use only URL- and header-safe characters
- Warn that values disappear on refresh
- Build it as a single page (HTML, CSS, JavaScript) that runs entirely in the browser, and never send the user's input to a server.

## Verification

- [ ] A 32-byte Base64URL secret is 43 characters without padding
- [ ] Consecutive values differ
- [ ] IDs start with the chosen prefix

Consejos para trabajar con IA

  • Indica tu stack (React, Vue o HTML puro) en la primera línea para obtener código adecuado.
  • Pide que ejecute las pruebas listadas y muestre los resultados antes de aceptar el código.
  • No pegues contraseñas reales, datos de clientes ni claves de API; usa valores de ejemplo.