Questions tagged [getpasswd]
14 questions
73
votes
11 answers
getpasswd functionality in Go?
Situation:
I want to get a password entry from the stdin console - without echoing what the user types. Is there something comparable to getpasswd functionality in Go?
What I tried:
I tried using syscall.Read, but it echoes what is typed.

RogerV
- 3,826
- 4
- 28
- 32
7
votes
2 answers
How to redirect data to a "getpass" like password input?
I'm wring a python script for running some command. Some of those commands require user to input password, I did try to input data in their stdin, but it doesn't work, here is two simple python program represent the problem
input.py
import…

Fang-Pen Lin
- 13,420
- 15
- 66
- 96
7
votes
6 answers
Python getpass.getpass() function call hangs
I am trying to get a prompt that will ask for my password but when I try to call getpass.getpass() it just freezes. I am running on Windows 7 64 bit using Python 2.7 on Canopy.
import sys
import getpass
p = getpass.getpass()
print p

jlcv
- 1,688
- 5
- 21
- 50
4
votes
2 answers
SecurityException in getPassword of accountManager in android
I'm trying to retrieve the password of google account, but getting
security exception at String pwd = AccountManager.get(mContext).getPassword(account).
Also i have given permissions in androidManifest.xml to
account_manager, aunthenticator,…

parul
- 49
- 1
- 4
4
votes
2 answers
convert the output of PinField.getPassword() to string
if ("Submit".equals(cmd)) { //Process the password.
String UserNameInput=UserName.getText();
///////////////////////////////ERROR Pin when printed shows error/////////////////////////////
char[] PinInput =…

Gaurav
- 782
- 1
- 12
- 22
3
votes
2 answers
Working with JPasswordField and its getText/getPassword method
Hello everybody I am working on the first piece of communication between server and client of my game. Obviously due to the fact that I am starting from zero, I am projecting each part of the program carefully.
I was looking in Swing API and I found…

Gianmarco
- 2,536
- 25
- 57
2
votes
0 answers
Getting a string to display whilst using getpass() in python
I'm using python and getpass() to get credentials from the terminal window. Whilst not displaying the credentials, it would be nice to display something in real-time. e.g * or # etc.
Is there any easy way of doing this?

Gareth Lock
- 215
- 2
- 4
2
votes
1 answer
Working with JPasswordField and handling the password with getPassword + server login procedure
After a day of long programming I want to post something useful for someone else.
Few days ago I was wondering how to handle JPasswordField's method getPassword() with a correct procedure to pass a value to a server and get an answer.
and this is…

Gianmarco
- 2,536
- 25
- 57
1
vote
1 answer
python getpass module is not taking German characters as input
I am trying to enter password having German characters using python getpass module on Windows 7. Python version is 2.7.8
First I set the system locale as German(Germany) and reboot.
The command prompt codepage is now set to cp850 which supports…

Shobhit Ranjan
- 83
- 2
- 7
1
vote
1 answer
getpass() appending carriage return at the end (in eclipse)
When I run the following code in eclipse, getPass returns a string suffixed with a carriage at the end.
However, when I run the same code in command prompt it runs without any problem.
import paramiko
import getpass
userPwd =…

John Rambo
- 906
- 1
- 17
- 37
1
vote
3 answers
Generate and Require Input of a Randomly-Generated Password
My program needs to remember a specific pre-determined password which has been assigned to a variable so that the user input must match it.
import random
password = [chr(random.randint(33, 126)) for x in range(6)]
print("Your password is:…

Coder
- 27
- 7
1
vote
0 answers
R - Rstudio suppress echo getpass
I'm trying to write a getpass function for R that will work with Rstudio. I've tried using the getpass C function (*nix, with Rcpp) as well as using the getpass from python using rPython, and both seem to work in the terminal, but cause the Rstudio…

csta
- 2,423
- 5
- 26
- 34
0
votes
0 answers
Why can't I log into my Gmail with POP (poplib) in python?
I am trying to login to my Gmail with POP. I have enabled POP/IMAP on my Gmail privacy settings, as well as "Access for less secure apps". I always get the same error.
Traceback (most recent call last):
File "scan.py", line 10, in…

suky
- 1
- 1
-2
votes
1 answer
get password from password field
I have put a Password Field on my frame. I have named it pwText(Variable name). I am unable to get the input from the Password Field so that I can do a comparison.
Please note that the password that need to be entered is "userjim".

user2128318
- 47
- 1
- 5