Functions to encrypt and decrypt sensitive data using AES-GCM.
Scanned 9/12/2026
Install to Claude Code
npx -y skills add ali-master/skills --skill orpc-encryption --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Orpc Encryption?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/ali-master-orpc-encryption)More formats (shields.io, HTML) on the badges page.
---
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.
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Use this skill when adding authentication, handling user input, working with secrets, creating API endpoints, or implementing payment/sensitive features. Provides comprehensive security checklist and patterns.