1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-09 05:00:10 +00:00
This commit is contained in:
Bernd Schoolmann
2025-05-23 09:42:11 +02:00
parent 7124f8c4bc
commit ebaf9fcf83
2 changed files with 5 additions and 0 deletions

View File

@@ -290,6 +290,7 @@ const safeProviders: SafeProvider[] = [
EncryptedMessageHandlerService,
DialogService,
DesktopAutofillSettingsService,
LogServiceAbstraction,
],
}),
safeProvider({

View File

@@ -6,6 +6,7 @@ import { firstValueFrom } from "rxjs";
import { NativeMessagingVersion } from "@bitwarden/common/enums";
import { CryptoFunctionService } from "@bitwarden/common/key-management/crypto/abstractions/crypto-function.service";
import { EncryptService } from "@bitwarden/common/key-management/crypto/abstractions/encrypt.service";
import { LogService } from "@bitwarden/common/platform/abstractions/log.service";
import { MessagingService } from "@bitwarden/common/platform/abstractions/messaging.service";
import { StateService } from "@bitwarden/common/platform/abstractions/state.service";
import { Utils } from "@bitwarden/common/platform/misc/utils";
@@ -39,6 +40,7 @@ export class DuckDuckGoMessageHandlerService {
private encryptedMessageHandlerService: EncryptedMessageHandlerService,
private dialogService: DialogService,
private desktopAutofillSettingsService: DesktopAutofillSettingsService,
private logService: LogService,
) {}
async handleMessage(message: Message) {
@@ -188,6 +190,8 @@ export class DuckDuckGoMessageHandlerService {
}
try {
this.logService.info("Key", this.duckduckgoSharedSecret.keyB64);
this.logService.info("Encrypted command", message.encryptedCommand);
const decryptedResult = await this.decryptDuckDuckGoEncString(
message.encryptedCommand as EncString,
this.duckduckgoSharedSecret,