MCPcopy Create free account
hub / github.com/Kilo-Org/cloud / getEncryptionKey

Function getEncryptionKey

apps/web/src/lib/promoCreditEncryption.ts:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import { CREDIT_CATEGORIES_ENCRYPTION_KEY } from '@/lib/config.server';
4
5const getEncryptionKey = () => {
6 if (!CREDIT_CATEGORIES_ENCRYPTION_KEY) {
7 throw new Error('CREDIT_CATEGORIES_ENCRYPTION_KEY environment variable is required');
8 }
9 return CREDIT_CATEGORIES_ENCRYPTION_KEY;
10};
11
12/**
13 * Encrypts a promo code using AES-256-GCM.

Callers 2

encryptPromoCodeFunction · 0.85
decryptPromoCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected