What is the best way to compare username and password using PyScript?

My application is (finally) coming along nicely, and I have everything working except for one part:

I need to compare user-inputted username and password with the actual username and password. I am accustomed to doing this in my native Java, whereby I compare user input to System.getEnv(‘USERNAME’) and System.getEnv(‘PASSWORD’), which are both stored in System Environmental Variables, but Python via PyScript has no access to the system environment variables and is locked solely to the current working directory ‘/home/pyodide’, a virtual file system. Where do I put username and password for PyScript to find them and do their comparison in a secure manner?

Thanks

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.