UNPKG

sussudio

Version:

An unofficial VS Code Internal API

20 lines (19 loc) 987 B
/*--------------------------------------------------------------------------------------------- * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ import { ICommonEncryptionService } from "../common/encryptionService.mjs"; import { ILogService } from "../../log/common/log.mjs"; export interface Encryption { encrypt(salt: string, value: string): Promise<string>; decrypt(salt: string, value: string): Promise<string>; } export declare class EncryptionMainService implements ICommonEncryptionService { private machineId; private readonly logService; readonly _serviceBrand: undefined; constructor(machineId: string, logService: ILogService); private encryption; encrypt(value: string): Promise<string>; decrypt(value: string): Promise<string>; }