@sussudio/platform
Version:
Internal APIs for VS Code's service injection the base services.
21 lines (19 loc) • 961 B
text/typescript
/*---------------------------------------------------------------------------------------------
* 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>;
}