mirror of
https://github.com/moonD4rk/HackBrowserData.git
synced 2026-07-08 21:37:49 +02:00
fix: add logger info when unable to decrypt the master key (#234)
This commit is contained in:
@@ -34,6 +34,10 @@ func (c *Chromium) GetMasterKey() ([]byte, error) {
|
|||||||
return nil, errDecodeMasterKeyFailed
|
return nil, errDecodeMasterKeyFailed
|
||||||
}
|
}
|
||||||
c.masterKey, err = crypto.DPAPI(key[5:])
|
c.masterKey, err = crypto.DPAPI(key[5:])
|
||||||
|
if err != nil {
|
||||||
|
log.Errorf("%s failed to decrypt master key, maybe this profile was created on a different OS installation", c.name)
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
log.Infof("%s initialized master key success", c.name)
|
log.Infof("%s initialized master key success", c.name)
|
||||||
return c.masterKey, err
|
return c.masterKey, nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user