If one argument is passed in (or a file is dropped on the exe) the app will deduce from its extension the needed conversion (json -> encrypt, save -> decrypt) and the app will then request a userId from the user to proceed. This simplifies the usage of the app.
I have also added a usage message to be shown when invalid arguments are passed.
PS: this probably could be written a little better, or handled using another method (potentially allowing an decrypt-encrypt directly), but it's 2 AM and this is a fine tool as it is right now.
If one argument is passed in (or a file is dropped on the exe) the app will deduce from its extension the needed conversion (json -> encrypt, save -> decrypt) and the app will then request a userId from the user to proceed. This simplifies the usage of the app.
I have also added a usage message to be shown when invalid arguments are passed.
PS: this probably could be written a little better, or handled using another method (potentially allowing an decrypt-encrypt directly), but it's 2 AM and this is a fine tool as it is right now.