windo69lib
Version:
Pre-built version of DPAPI (Data Protection API of Windows). Encrypt and decrypt data.
8 lines (7 loc) • 411 B
TypeScript
export interface DpapiBindings {
protectData(dataToEncrypt: Uint8Array, optionalEntropy: Uint8Array | null, scope: DataProtectionScope): Uint8Array;
unprotectData(encryptData: Uint8Array, optionalEntropy: Uint8Array | null, scope: DataProtectionScope): Uint8Array;
}
export type DataProtectionScope = "CurrentUser" | "LocalMachine";
export declare var Dpapi: DpapiBindings;
export default Dpapi;