Skip to content
Back to skills

Orpc Encryption

ASecurity

Functions to encrypt and decrypt sensitive data using AES-GCM.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 12, 2026
securitygit

Security analysis

A100/100

Scanned September 12, 2026

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

Installs into .claude/skills of the current project.

Are you the author of Orpc Encryption?

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

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

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 Encryption Helpers
description: Functions to encrypt and decrypt sensitive data using AES-GCM.
license: MIT
metadata:
  author: Ali Torki
  homepage: https://github.com/ali-master
  version: "1.0.0"
---

# Encryption Helpers

Encryption helpers provide functions to encrypt and decrypt sensitive data using AES-GCM with PBKDF2 key derivation.

> Encryption is more CPU-intensive than [signing](/docs/helpers/signing). For edge runtimes like Cloudflare Workers, ensure >200ms per request budget.

```ts
import { decrypt, encrypt } from '@orpc/server/helpers'

const secret = 'your-encryption-key'
const sensitiveData = 'user-email@example.com'

const encryptedData = await encrypt(sensitiveData, secret)
// 'Rq7wF8...' (base64url encoded, unreadable)

const decryptedData = await decrypt(encryptedData, secret)
// 'user-email@example.com'
```

> `decrypt` accepts `undefined`/`null` and returns `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.