UNPKG

@bakesaled/cement

Version:

A library that encrypts and decrypt files or strings.

10 lines (9 loc) 417 B
import { CryptoService } from '../crypto'; export declare class FileService { private cryptoService; constructor(cryptoService: CryptoService); create(password: string, filePath: string, content: string): Promise<void>; encryptExistingFile(password: string, filePath: string): Promise<void>; decryptFile(password: string, filePath: string): Promise<unknown>; private encryptToFile; }