Skip to content
Back to skills

Orpc Signing

ASecurity

Cryptographically sign and verify data using HMAC-SHA256.

  • 8 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 12, 2026
testinggit

Security analysis

A100/100

Scanned September 12, 2026

npx -y skills add ali-master/skills --skill orpc-signing --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Orpc Signing?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Orpc Signing
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ali-master-orpc-signing/badge)](https://www.skillsdirectory.com/skills/ali-master-orpc-signing)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: oRPC Signing Helpers
description: Cryptographically sign and verify data using HMAC-SHA256.
license: MIT
metadata:
  author: Ali Torki
  homepage: https://github.com/ali-master
  version: "1.0.0"
---

# Signing Helpers

Cryptographically sign and verify data using HMAC-SHA256.

> Signing is faster than [encryption](/docs/helpers/encryption) but users can view the original data.

```ts
import { getSignedValue, sign, unsign } from '@orpc/server/helpers'

const secret = 'your-secret-key'
const userData = 'user123'

const signedValue = await sign(userData, secret)
// 'user123.oneQsU0r5dvwQFHFEjjV1uOI_IR3gZfkYHij3TRauVA'
// ↑ Original data is visible to users

const verifiedValue = await unsign(signedValue, secret) // 'user123'

// Extract value without verification
const extractedValue = getSignedValue(signedValue) // 'user123'
```

> `unsign` and `getSignedValue` accept `undefined`/`null` and return `undefined` for invalid inputs.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.