mihaifm / HIBPOfflineCheck

Keepass plugin that performs offline and online checks against HaveIBeenPwned passwords
Other
318 stars 17 forks source link

Simple way to rename the column that HIBP Offline uses #26

Open jeff9315 opened 5 years ago

jeff9315 commented 5 years ago

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.

mihaifm commented 5 years ago

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.

hilari0n commented 5 years ago

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.

mihaifm commented 5 years ago

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

homes32 commented 5 years ago

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