Allow the ability to create custom field/variables for entries Password Safe.
This describes a very feature rich implementation with differen data-types, but a simple text field would suffice if implementation is too involved.
Brief Overview:
Create a new section on the "Manage" menu called "Custom Fields".
When selected, the dialog will contain 2 sections. Each section will have buttons for "New", "Edit", "Delete".
Sections:
1. Custom Fields - Add, modify, delete custom fields to be added to policies.
2. Cust Field Policies - policy that can be attached to an Entry (similar to Password Policy) making those fields and associated variables available to those entries.
The "New" and "Edit" dialogs for a custom field.
When Add or Edit is clicked for a custom field, another dialog is displayed to configure the item. Each custom field should have the options below. Depending on the Type selected in the drop-down, additional options will be displayed.
- Name (text) - Friendly field name.
- Type (drop down) - Drop down options: Text / Notes / DateTime / Integer / Drop Down / Boolean (checkbox)
- Variable (text,optional) - Variable name. Do not allow to conflict with any built-in variables. No spaces, special characters, etc.
- Description (text,optional)
Fields available per Data-type
Text and Notes
- Default Value (text,optional) - Default value when creating a new entry.
- Hidden (drop down) - No / Asterisks (with show/hide button) / Click to display
DateTime
- Date and/or Time (drop down) - Date / Time / DateTime
- Variable Return (drop down) - Text / Integer. When retrieving value via a variable, specify the format.
- Text: Additional drop down with common text outputs plus "Custom" which allows a strftime compatible string.
- Integer: Return seconds from epoch.
Integer
- Min (optional) - minimum value allowed.
- Max (optional) - maximum value allowed.
Drop Down - List drop down options in a field. Buttons for Add, Edit, Delete, Move Up, Move Down.
Each Drop down entry should have these fields.
- Display Name - Name to choose in the drop-down.
- Variable Value - Value to return when variable is used.
Boolean
- Variable True - Value to return when box is checked.
- Variable False - Value to return when box is not checked.
In the "Manage Custom Fields Policies" window, list the custom field policies, similar to "Manage Password Policies." Display the name and how many uses it has.
In the "Edit Entry" window, a "Custom Field Policy" drop-down should be added so a custom field policy can be selected. When selected, an additional tab should be displayed where the custom fields can be configured.