15 lines · 371 B · TypeScript
RawDownload
import { readSecret } from "../db/constants"; const { ENCRYPTION_KEY, ENCRYPTION_KEY_FILE } = process.env; function resolveEncryptionSecret(): string | undefined {	if (ENCRYPTION_KEY) {		return ENCRYPTION_KEY;	}	if (ENCRYPTION_KEY_FILE) {		return readSecret(ENCRYPTION_KEY_FILE);	}	return undefined;} export const encryptionSecret = resolveEncryptionSecret();

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t