HIBPOfflineCheck
HIBPOfflineCheck copied to clipboard
Simple way to rename the column that HIBP Offline uses
Maybe this should be added as a note somewhere ... as a way to use a different column name ...
Keepass has a function called XML Replace
under Tools > Database Tools
. It's documented at https://keepass.info/help/v2/xml_replace.html#delstr . To delete a field called Have I Been Pwned
, use this in XML Replace ... //Entry/String[Key='Have I Been Pwned']
and under "Action", specify Remove Node
.
Then, under Tools > HIBP Offline Check
, you can use a different name for the column (I use HIBP Offline
). You'd then have to rerun HIBP Offline to populate the new field.
Thanks, this is useful info. I'm thinking to add some logic to automatically delete the entry under the old column when changing the plugin column name.
Wouldn't it be better to rather rename the entry, instead of deletion? That way one could retain the already determined password statuses. A separate option, to remove the column (or to clear it in the whole DB or in the current selection) would be a nice addition.
@hilari0n I'll have to investigate the renaming option, it might be a bit tricky. Currently I'm using a ColumnProvider
class from KeePass which abstracts a lot of the functionality.
If you need to remove the column just clear the status for all entries (using the button in the options) and then change the column name (or remove the plugin). Database should be clean.
@hilari0n I'll have to investigate the renaming option, it might be a bit tricky. Currently I'm using a
ColumnProvider
class from KeePass which abstracts a lot of the functionality.
If renaming itself proves problematic, how about copying the value to a new column, then deleting the old column?