0

[Solved] What is the prerequisite knowledge for hiding Python input?

I saw this getpass thing on SO, but it was way over my head and the asker knew what they were asking, so did the responders (lol-you don't say), and it was just part of some code. I would have searched about getpass but it seems this is when you can embed python into some shared environment? How does this happen? Is there a way to feed a single python terminal two users' inputs as to hide the first user's input from the second without uploading the thing online? I don't know jack about web server etc, I've heard about Jython, should I be learning that even if to process input from different users? Blabber blabber I think you get all the things I have miserably failed to ask. It might be too much, but can you just give me the prerequisites in headlines, like learn JS, server stuff(whatever that field is called) etc? godspeed me lol

21st Apr 2022, 2:46 AM
Korkunç el Gato
Korkunç el Gato - avatar
9 ответов
21st Apr 2022, 3:08 AM
John Wells
John Wells - avatar
+ 2
You can display stars after the fact or write your own it you want stars for each character.
21st Apr 2022, 3:10 AM
John Wells
John Wells - avatar
+ 1
It is used for things like recieving passwords where you do not want the data displayed on the user's screen in case someone else is looking at it.
21st Apr 2022, 2:51 AM
John Wells
John Wells - avatar
+ 1
Python can be backend code to deal with multiple users but it is limited in the number it can handle due to its execution speed. Jython is a JavaScript replacement for your frontend code. In this case, it runs on the user's device so speed is not a concern but other watchers could be.
21st Apr 2022, 3:06 AM
John Wells
John Wells - avatar
+ 1
Korkunç TheTerrible no it is a simple input replacement.
21st Apr 2022, 3:07 AM
John Wells
John Wells - avatar
+ 1
This gives two ways of masking with stars. https://stackoverflow.com/questions/27631629
21st Apr 2022, 3:19 AM
John Wells
John Wells - avatar
0
John Wells Thank you. I know that, but can it be used when there's no website but just the python terminal? Like, do I see stars or whatever I chooae to hide my input even in the terminal? I mean is there a way to make python not print input as I'm typing it in while only using the terminal? If getpass does exactly that do I need any prior knowledge to understand it? Also, where can I learn about all the environments that Python can be integrated and what to study to learn to use them?
21st Apr 2022, 3:04 AM
Korkunç el Gato
Korkunç el Gato - avatar
0
John Wells Thank you. I should have looked up get pass rather than try to understand that SO page content. This page with that link shows the input, too, with a very simple example.
21st Apr 2022, 3:18 AM
Korkunç el Gato
Korkunç el Gato - avatar
0
John Wells That is so cool, there was no way I would know to search about this using the word "mask". Thank you.
21st Apr 2022, 3:23 AM
Korkunç el Gato
Korkunç el Gato - avatar