Questions tagged [getpass]

Use for questions concerning the Python stdlib module which provides secure and portable password input

Many programs that interact with the user via the terminal need to ask the user for password values without showing what the user types on the screen. The getpass module provides a portable way to handle such password prompts securely.

52 questions
0
votes
1 answer

Using getpass to hide user input in terminal

I'm teaching myself python and one of my little starting projects is a Rock, Paper, Scissors game. The code runs fine. I would like to add an extra feature though. Whenever a user enters Rock, Paper or Scissor the input remains in the terminal.…
Victor Murcia
  • 25
  • 1
  • 6
0
votes
2 answers

Trouble with masking password input in Python

I am using Python. I am making a script where the user has to enter the password in the terminal. I have already found a solution on this website by using the getpass module. new_password=getpass.getpass(prompt="Type new password: ") The problem is…
Borut Flis
  • 15,715
  • 30
  • 92
  • 119
-1
votes
1 answer

Python getpass function

I have tried to use this getpass function in python to type in my password, but when I run the code, i cannot input anything in the terminal. Thanks in advance! :D enter image description here enter image description here
Felix
  • 1
-1
votes
1 answer

I'm trying to use selenium but keep getting this error

I'm trying to make a python program that you can use as a module for instagram.com. Here's the code: from selenium import webdriver from getpass import getpass user = input("Enter your username/email: ") pwd = getpass(prompt="Enter your password:…
JosephAB
  • 1
  • 1
-1
votes
1 answer

ValueError: No closing quotation - slappasswd wrapper

I'm using getpass to edit LDAP passwords simply and efficiently. When I use a password, for example: c;_pr8\\E0L)ec*\'E._rPBH?"4i9Tne and try to run the program I get the following error: Traceback (most recent call last): File…
CertifcateJunky
  • 161
  • 1
  • 11
-1
votes
3 answers

Python Telnet script

Thanks to Python Library i was able to use their example to telnet to Cisco switches, I am using this for learning purposes, specifically learning python. However, although all the code seem generally easy to read, I am a bit confused as to the…
tafiela
  • 93
  • 2
  • 10
-3
votes
2 answers

How to use getpass library in python

I'm trying to use getpass library in python but I can't. Can somebody help me to use it in vscode? I tried: Getpass import as input but it didn't work.
1 2 3
4