Conversation
added script params to replace hard coded USERNAME, HOST etc
|
Thanks @evenhuis. This option will work. We only use the name and password in the script solely for convenience during the training session, and we did not recommend to use that approach for general usage If you want to change the other scripts that will be great. |
|
Hi @jburel, Thanks, I’ll have a go at changing the rest of the scripts when I get a chance. Let me know if there’s any examples handling password better. Except for some python/jupyter codes using get pass, I couldn’t find anything. The diff you mention is new file. In the script editor I have it doesn’t recognize the ‘.jy’ so the scripts appear as plain text and can’t be executed. Setting the language to python changes the extension to ‘.py’. I think if would be easier to change the extensions to ‘.py’. Thanks, Chris |
|
sorry I missed the extension. Which version of Fiji are you using? I never had that problem with the script editor |
|
This issue was raised during Oxford workshop again by the attendees. |
Replacing hard-coded variables in scripts
Issue
storing username and passwords in the script or in credentials. txt are real security risk:
Less reuse of script of each script needs to be altered for user, imageID etc
Fix
Use the
#@parameterscript function in ImageJ:value=style='password'keeps the password secureIf this is good solution I'll change the rest of the scripts in the examples.
Cheers,
Chris