Configuration Utility Update!

Several new functions have been added to enable more secure storage of credentials or other sensitive data in a Base64-encoded JSON file.  This is useful for a variety of other purposes as well, i.e. it will save space (not really a concern here).

I took the opportunity to correct some pathing issues, and  resources/frameworks/configure.py can now be invoked from anywhere; configuration file path integrity will be maintained.  A conversion menu has been activated in the main menu of the utility to allow conversion to/from the various formats available (JSON, YAML, and Base64/JSON).  An example of converting a file follows.

$ python configure.py -k

Open a file
Convert a file
Quit

Selection > c

Convert (JSON <-> YAML)
Encode (JSON|YAML -> base64 JSON)
Back

Selection > e
Specify an input file (q quits) > app_config.json
New config file created : /home/bill/python/pokeycode/resources/frameworks/app_config.cfg
File : /home/bill/python/pokeycode/resources/frameworks/app_config.json
Really delete? > y

Convert (JSON <-> YAML)
Encode (JSON|YAML -> base64 JSON)
Back

Selection > b

Open a file
Convert a file
Quit

Selection > q
Really quit? y
$

 

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.