QUICKSTART GUIDE

Protect Your API Keys
in 5 Minutes

Kyber-1024 + AES-256-GCM encryption. Your keys never touch your server in plaintext. One SDK call to encrypt, one to decrypt.

1

Install the SDK

Zero dependencies. Works with Node.js 18+ or Python 3.8+.

Node.js
Python
cURL
npm install @h33/key
pip install h33-key
# No install needed — just use curl
# Get your API key at h33.ai/pricing
2

Initialize with your API key

Get your key at h33.ai/pricing — free tier includes 1,000 credits/month.

Node.js
Python
cURL
import { H33Key } from '@h33/key';

const h33 = new H33Key({ apiKey: 'h33_your_key_here' });
from h33_key import H33Key

client = H33Key(api_key='h33_your_key_here')
# Set your API key as an env var
export H33_API_KEY="h33_your_key_here"
3

Encrypt your secret

Store the keyId in your database instead of the raw key. The plaintext is now encrypted with Kyber-1024.

Node.js
Python
cURL
// Encrypt your Stripe secret key
const { keyId } = await h33.encrypt('sk_live_abc123', {
  label: 'stripe-production'
});

// Store keyId in your database
// keyId = "hk_a1b2c3d4e5f6..."
await db.update({ stripe_key_id: keyId });
# Encrypt your Stripe secret key
result = client.encrypt('sk_live_abc123', label='stripe-production')

# Store key_id in your database
# result['key_id'] = "hk_a1b2c3d4e5f6..."
db.update(stripe_key_id=result['key_id'])
curl -X POST https://h33.ai/api/v1/key/encrypt \
  -H "X-API-Key: $H33_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key_material":"sk_live_abc123","label":"stripe-production"}'

# Response:
# {"key_id":"hk_a1b2c3...","ciphertext":"AQ...","tier":"key-0","credits_used":3}
4

Decrypt at point of use

When your app needs the plaintext, decrypt it. The key is returned, used, then garbage collected.

Node.js
Python
cURL
// At runtime, decrypt to get the original key
const { keyMaterial } = await h33.decrypt(keyId);

// Use it directly
const stripe = new Stripe(keyMaterial);
// keyMaterial === "sk_live_abc123"
# At runtime, decrypt to get the original key
result = client.decrypt(key_id)

# Use it directly
stripe = Stripe(result['key_material'])
# result['key_material'] == "sk_live_abc123"
curl -X POST https://h33.ai/api/v1/key/decrypt \
  -H "X-API-Key: $H33_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"key_id":"hk_a1b2c3d4e5f6..."}'

# Response:
# {"key_id":"hk_a1b2c3...","key_material":"sk_live_abc123","credits_used":3}

Pricing

Free tier: 1,000 credits/month. Pay as you go after that.

Key-0

$0.18
3 credits / op
Kyber encrypt/decrypt + audit log

Key-1

$0.48
8 credits / op
+ HMAC-SHA3 integrity

Key-2

$0.90
15 credits / op
+ Envelope rotation

Key-3

$1.50
25 credits / op
+ Threshold + Dilithium

Ready to protect your keys?

Get your API key and start encrypting in under 5 minutes.

Get API Key Full SDK Docs