FreeLLMAPI / server /dist /lib /crypto.d.ts
Nryn215's picture
Upload folder using huggingface_hub
077865a verified
Raw
History Blame Contribute Delete
526 Bytes
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