HIBPOfflineCheck icon indicating copy to clipboard operation
HIBPOfflineCheck copied to clipboard

Simple way to rename the column that HIBP Offline uses

Open jeff9315 opened this issue 5 years ago • 4 comments

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.

jeff9315 avatar Feb 09 '19 16:02 jeff9315

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.

mihaifm avatar Feb 14 '19 15:02 mihaifm

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 avatar Jul 08 '19 14:07 hilari0n

@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.

mihaifm avatar Jul 08 '19 22:07 mihaifm

@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?

homes32 avatar Jul 31 '19 17:07 homes32