mirror of
https://github.com/docmost/docmost.git
synced 2026-08-25 15:57:11 +08:00
Provides an injectable EncryptionService that encrypts/decrypts strings with AES-256-GCM using a key derived from APP_SECRET with domain separation.
10 lines
230 B
TypeScript
10 lines
230 B
TypeScript
import { Global, Module } from '@nestjs/common';
|
|
import { EncryptionService } from './encryption.service';
|
|
|
|
@Global()
|
|
@Module({
|
|
providers: [EncryptionService],
|
|
exports: [EncryptionService],
|
|
})
|
|
export class EncryptionModule {}
|