feat(server): add global encryption module (AES-256-GCM) (#2400)

Provides an injectable EncryptionService that encrypts/decrypts strings
with AES-256-GCM using a key derived from APP_SECRET with domain
separation.
This commit is contained in:
Philip Okugbe
2026-08-16 12:35:37 +01:00
committed by GitHub
parent d136864ef1
commit 911c1057d6
5 changed files with 316 additions and 0 deletions
@@ -0,0 +1,9 @@
import { Global, Module } from '@nestjs/common';
import { EncryptionService } from './encryption.service';
@Global()
@Module({
providers: [EncryptionService],
exports: [EncryptionService],
})
export class EncryptionModule {}