> ## Documentation Index
> Fetch the complete documentation index at: https://docs.reqi.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Hash text

> SHA-256, SHA-384, or SHA-512 hex digest of the text query param.

SHA-256, SHA-384, or SHA-512 hex digest of the text query param.


## OpenAPI

````yaml https://api.reqi.dev/openapi/utilities.json GET /v1/util/hash
openapi: 3.1.0
info:
  title: Countries API — Utilities
  version: 1.0.0
  description: >-
    Stateless helpers unrelated to country records Subset of the full API
    contract at /openapi.json (5 paths).
servers:
  - url: https://api.reqi.dev
    description: API host
  - url: https://cdn.reqi.dev
    description: Flag CDN
security: []
tags:
  - name: Utilities
    description: Stateless helpers unrelated to country records
paths:
  /v1/util/hash:
    get:
      tags:
        - Utilities
      summary: Hash text
      description: SHA-256, SHA-384, or SHA-512 hex digest of the text query param.
      operationId: utilHash
      parameters:
        - name: text
          in: query
          required: true
          description: UTF-8 string to hash.
          schema:
            type: string
        - name: algorithm
          in: query
          description: Hash algorithm. Default sha256.
          schema:
            type: string
            enum:
              - sha256
              - sha384
              - sha512
      responses:
        '200':
          description: Digest.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UtilHash'
        '400':
          $ref: '#/components/responses/BadRequest'
components:
  schemas:
    UtilHash:
      type: object
      properties:
        kind:
          type: string
        algorithm:
          type: string
        encoding:
          type: string
        digest:
          type: string
        inputLength:
          type: integer
    Error:
      type: object
      required:
        - message
        - status
      properties:
        message:
          type: string
        status:
          type: integer
  responses:
    BadRequest:
      description: Invalid query parameters.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.