fokemal / server /dist /lib /crypto.d.ts
automindy's picture
Upload 603 files
5569a86 verified
Raw
History Blame Contribute Delete
534 Bytes
import type { TursoDb } from '../db/client.js';
/**
* Initialize encryption key from env or an explicit local-dev fallback.
* Must be called after DB is initialized.
*/
export declare function initEncryptionKey(db: TursoDb): Promise<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