Kyber-1024 + AES-256-GCM encryption. Your keys never touch your server in plaintext. One SDK call to encrypt, one to decrypt.
Zero dependencies. Works with Node.js 18+ or Python 3.8+.
npm install @h33/key
pip install h33-key
# No install needed — just use curl # Get your API key at h33.ai/pricing
Get your key at h33.ai/pricing — free tier includes 1,000 credits/month.
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"
Store the keyId in your database instead of the raw key. The plaintext is now encrypted with Kyber-1024.
// 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}
When your app needs the plaintext, decrypt it. The key is returned, used, then garbage collected.
// 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}
Free tier: 1,000 credits/month. Pay as you go after that.
Get your API key and start encrypting in under 5 minutes.
Get API Key Full SDK Docs