UNPKG

system-secured-storage

Version:

A Node.js project that allows users to store encrypted key-value data locally on their system. This project serves as an alternate storage solution to SQLite but with enhanced security features, leveraging AES encryption to ensure the confidentiality and

33 lines (32 loc) 1.1 kB
/** * Save data locally asynchronously. * * @param {string} directory - The directory to save the file. * @param {string} data - The data to be saved. * @param {void} callback - The callback function * @returns */ export declare const saveDataLocallyAsync: (directory: string, data: string, callback: (error: any) => void) => void; /** * Save data locally synchronously. * * @param {string} directory - The directory to save the file. * @param {string} data - The data to be saved. * @returns */ export declare const saveDataLocallySync: (directory: string, data: string) => void; /** * Retrieve data locally asynchronously. * * @param {string} directory - The directory the data saved in. * @param {void} callback - Callback function. * @returns */ export declare const retrieveDataLocallyAsync: (directory: string, callback: (error: any | null, data: any) => void) => void; /** * Retrieve data locally synchronously. * * @param {string} directory - The directory the data saved in. * @returns */ export declare const retrieveDataLocallySync: (directory: string) => any;