Spaces:
Runtime error
Runtime error
File size: 526 Bytes
077865a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | import Database from 'better-sqlite3';
/**
* Initialize encryption key from env or an explicit local-dev fallback.
* Must be called after DB is initialized.
*/
export declare function initEncryptionKey(db: Database.Database): void;
export declare function encrypt(text: string): {
encrypted: string;
iv: string;
authTag: string;
};
export declare function decrypt(encrypted: string, iv: string, authTag: string): string;
export declare function maskKey(key: string): string;
//# sourceMappingURL=crypto.d.ts.map |