---
title: "Encrypt Text"
method: POST
path: "/crypto/encrypt"
tags: ["Crypto"]
---

# Encrypt Text

`POST /crypto/encrypt`

Encrypts the body of the request and returns the encrypted value.  The encryption process uses a hard-coded cipher and a secret key.  This is a one-way encryption; the encrypted value will only be decrypted internally by the proxy endpoint, when submitting a proxied request.

## Request body

- CryptoRequest
  - `value` string — The value to be encrypted.

## Response `200`

The encrypted form of the original value.

## Other responses

- `400` — Missing body or value in request.
- `500` — Cyclotron-svc is not configured for encryption.

---

[API](https://skmtc.dev/expediagroup/apis/cyclotron-api.md) · [All operations](https://skmtc.dev/expediagroup/apis/cyclotron-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/expediagroup/cyclotron-api/revisions/18e751e6bc49/schema)
