HerramientasTools
Entrar Crear cuenta

Generar hash

Generar hash es una API que calcula el hash (MD5, SHA-1, SHA-256 o SHA-512) de un texto o de un fichero: para comprobar integridad, deduplicar, o generar una clave corta a partir de un dato largo.

Cómo funciona

Le mandas un texto (dentro de un JSON) o un fichero (a pelo, en el propio cuerpo de la petición) y te devuelve su hash. Es la única herramienta de Cofferdock que admite estas dos entradas pero SIEMPRE responde en JSON: un hash es un dato pequeñísimo, no un archivo que necesites descargar.

Lo único que necesitas

  • Tu API key. La creas en tu panel con "+ Crear llave". Se muestra una sola vez, así que cópiala y guárdala.
  • En tu plataforma de automatización, un paso de tipo "HTTP Request" / "Hacer una petición HTTP" (lo tienen n8n, Make, Zapier, Pipedream…).

Cómo usarlo en n8n (paso a paso)

En el nodo HTTP Request, para hashear un texto:

  • Method: POST
  • URL: https://api.cofferdock.com/hash
  • Send Headers: actívalo y añade dos: x-api-key = tu llave, y Content-Type = application/json
  • Send Body: actívalo → Body Content Type: JSON{ "text": "hola mundo", "algorithm": "sha256" }

Para hashear un fichero en vez de texto: Content-Type = application/octet-stream, y el cuerpo es el fichero en binario en vez de JSON (usa el parámetro algorithm en la URL, ej. ?algorithm=sha256, ya que en modo fichero no hay JSON donde meterlo).

En Make (módulo HTTP → Make a request): mismo método y URL, Body type: Raw, Content type: JSON, con el mismo cuerpo.

Opciones

OpciónPor defectoPara qué sirve
text-El texto a hashear. Solo en modo JSON.
algorithmsha256md5, sha1, sha256 o sha512.
encodinghexhex o base64.

Lo que recibes

Un JSON con el hash en hash, más el algoritmo y la codificación usados. meta.input_mode te dice si se hasheó texto o un fichero.

Generate hash

Generate hash is an API that computes the hash (MD5, SHA-1, SHA-256 or SHA-512) of a piece of text or a file: for integrity checks, deduplication, or turning a long value into a short key.

How it works

You send some text (inside a JSON body) or a file (raw, in the request body itself) and get back its hash. It's the only Cofferdock tool that accepts both input types but ALWAYS responds in JSON: a hash is a tiny piece of data, not a file you'd need to download.

All you need

  • Your API key. Create it in your dashboard with "+ Create key". It's shown only once, so copy and save it.
  • In your automation platform, an "HTTP Request" step (n8n, Make, Zapier, Pipedream… all have one).

How to use it in n8n (step by step)

In the HTTP Request node, to hash text:

  • Method: POST
  • URL: https://api.cofferdock.com/hash
  • Send Headers: on → add two: x-api-key = your key, and Content-Type = application/json
  • Send Body: on → Body Content Type: JSON{ "text": "hello world", "algorithm": "sha256" }

To hash a file instead of text: Content-Type = application/octet-stream, and the body is the raw file instead of JSON (use the algorithm parameter in the URL, e.g. ?algorithm=sha256, since file mode has no JSON to put it in).

In Make (HTTP → Make a request module): same method and URL, Body type: Raw, Content type: JSON, with the same body.

Options

OptionDefaultWhat it does
text-The text to hash. JSON mode only.
algorithmsha256md5, sha1, sha256 or sha512.
encodinghexhex or base64.

What you get back

A JSON with the hash in hash, plus the algorithm and encoding used. meta.input_mode tells you whether text or a file was hashed.