Skip to content

Commit ebdf792

Browse files
onlykeyonlykey
authored andcommitted
pass masking
1 parent 09873e2 commit ebdf792

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

onlykey/cli.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ def _(event):
3434

3535
def prompt_pass():
3636
print('Type Control-T to toggle password visible.')
37-
password = prompt('Password/Key: ', is_password=Condition(lambda cli: hidden[0]))
37+
password = prompt('Password/Key: ', is_password=True)
3838
return password
3939

4040
def prompt_key():
4141
print('Type Control-T to toggle key visible.')
42-
key = prompt('Key: ', is_password=Condition(lambda cli: hidden[0]))
42+
key = prompt('Key: ', is_password=True)
4343
return key
4444

4545
def prompt_pin():
@@ -257,8 +257,7 @@ def prompt_pin():
257257

258258
# Print help.
259259
print('OnlyKey CLI v0.2')
260-
print('Press the right arrow to insert the suggestion.')
261-
print('Press Control-C to retry. Control-D to exit.')
260+
print('Control-D to exit.')
262261
print()
263262

264263
def mprompt():

0 commit comments

Comments
 (0)