Skip to content

If you are like me, with complicated passwords, you probably want this prompt

License

Notifications You must be signed in to change notification settings

jeanschmidt/curser_sudo_prompt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Unnamed Curser Password Prompt

If you are here, you're probably like myself: a bit of paranoiac.

When you have lengthy passwords, especially when your password mix upper and lower case letters, numbers and special characters, typing fast may cause one of your Shift to be missed. This is something that the traditional * style password prompt don't help. And hey, we're paranoiac, we don't want to share how many characters our password have, right?

So what would be even better is to have a visual feedback of upper/lower case, numbers and special symbols when we're typing, but not something that reveals how many of those. At max its number modulo.

So, this is why I made this. Each animation changes every time you type a character for that type.

Suppose you want to run the command:

The command you want to run with root

You will then be prompted:

Unamed Curser Password Prompt

Installation and Setup

Download the file, read it, make sure the code makes sense and there is no Trojan or any vulnerability risk. Then put wherever you feel comfortable with, for example ~/bin/curser_pass_prompt.py.

Set its permissions:

$ chmod 500 ~/bin/curser_pass_prompt.py
# Optional, prevent file from changes, except from root users
$ sudo chattr +i ~/bin/curser_pass_prompt.py

..and change your alias for your sudo command:

BASH [~/.bash_profile]

alias sudo="sudo -A"
export SUDO_ASKPASS="~/bin/curser_pass_prompt.py"

ZSH [~/.zshrc]

alias sudo="sudo -A"
typeset +x SUDO_ASKPASS="~/bin/curser_pass_prompt.py"

FISH [~/.config/fish/config.fish]

set -x SUDO_ASKPASS ~/bin/curser_pass_prompt.py
alias sudo 'sudo -A'

About

If you are like me, with complicated passwords, you probably want this prompt

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages