Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Merge pull request #153 from kspearrin/bitwarden
Browse files Browse the repository at this point in the history
Added support for bitwarden password manager
  • Loading branch information
bsclifton authored Mar 13, 2017
2 parents f698449 + 58f0f5a commit b90480c
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
3 changes: 3 additions & 0 deletions brave/browser/api/brave_api_component_updater.cc
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,9 @@ void ComponentUpdater::RegisterComponent(const std::string& component_id) {
} else if (component_id == kEnpassId) {
RegisterComponentForUpdate(
kEnpassPublicKeyStr, registered_callback, ready_callback);
} else if (component_id == kBitwardenId) {
RegisterComponentForUpdate(
kBitwardenPublicKeyStr, registered_callback, ready_callback);
} else if (component_id == kWidevineId) {
brave::RegisterWidevineCdmComponent(
g_browser_process->component_updater(),
Expand Down
45 changes: 45 additions & 0 deletions brave/browser/component_updater/default_extensions.h
Original file line number Diff line number Diff line change
Expand Up @@ -302,4 +302,49 @@ const std::string kEnpassPublicKeyStr( // NOLINT
(const char *)kEnpassPublicKey, sizeof(kEnpassPublicKey));
const std::string kEnpassId("kmcfomidfpdkfieipokbalgegidffkal"); // NOLINT

// bitwarden
// Download: https://clients2.google.com/service/update2/crx?response=redirect&prodversion=52.0.2743.116&x=id%3Dnngceckbapebfimnlniiiahkandclblb%26uc // NOLINT
const uint8_t kBitwardenPublicKey[294] = {
0x30, 0x82, 0x01, 0x22, 0x30, 0x0d, 0x06, 0x09,
0x2a, 0x86, 0x48, 0x86, 0xf7, 0x0d, 0x01, 0x01,
0x01, 0x05, 0x00, 0x03, 0x82, 0x01, 0x0f, 0x00,
0x30, 0x82, 0x01, 0x0a, 0x02, 0x82, 0x01, 0x01,
0x00, 0x9a, 0xa2, 0x9b, 0xbe, 0xb7, 0xac, 0x87,
0x25, 0xd1, 0xb8, 0xdd, 0xa0, 0x8a, 0x47, 0x91,
0xd6, 0x27, 0x6a, 0x47, 0x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 0x16, 0x27,
0x85, 0x55, 0xd7, 0x06, 0xc2, 0xaa, 0x23, 0x26,
0x13, 0x32, 0x31, 0xd2, 0x2e, 0x42, 0xe7, 0xa5,
0xf1, 0x72, 0x4b, 0x23, 0x8f, 0x2c, 0x17, 0x52,
0xeb, 0x5e, 0xe2, 0xfc, 0xf1, 0x8d, 0x88, 0xff,
0xcc, 0x4f, 0xa5, 0xf2, 0xeb, 0x3f, 0xff, 0xbf,
0x93, 0x68, 0xcd, 0x48, 0x1a, 0x01, 0x9e, 0x20,
0x25, 0x02, 0x03, 0x01, 0x00, 0x01
};
const std::string kBitwardenPublicKeyStr( // NOLINT
(const char *)kBitwardenPublicKey, sizeof(kBitwardenPublicKey));
const std::string kBitwardenId("nngceckbapebfimnlniiiahkandclblb"); // NOLINT

#endif // BRAVE_BROWSER_COMPONENT_UPDATER_DEFAULT_EXTENSIONS_H_

0 comments on commit b90480c

Please sign in to comment.