asarmor
Version:
Protect asar archive files from extraction
19 lines (18 loc) • 397 B
TypeScript
export type EncryptionOptions = {
/**
* File path to an input asar.
*
* @example `app.asar`.
*/
src: string;
/**
* File path to the output asar.
*
* @example `encrypted.asar`.
*/
dst: string;
};
/**
* Encrypts and packages all files into an asar archive.
*/
export declare function encrypt({ src, dst }: EncryptionOptions): Promise<void>;