# openSecret

**Kind:** Function

**Source:** [`atloria-monorepo/apps/api/src/documentation/payload-crypto.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/apps/api/src/documentation/payload-crypto.ts#L58)

Open a sealed secret. Pass-through for values without the `enc:v1:` prefix.

## Signature

```ts
function openSecret(value: T): T | string
```

## Parameters

| Name | Type |
|---|---|
| `value` | `T` |

**Returns:** `T | string`
