Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

password prompt implementation in BEAM #17

Open
max-au opened this issue Mar 5, 2021 · 2 comments
Open

password prompt implementation in BEAM #17

max-au opened this issue Mar 5, 2021 · 2 comments

Comments

@max-au
Copy link
Member

max-au commented Mar 5, 2021

CLI tools do not have a good way to request a password.
Existing solution is to quickly type backspace key when entering passwords, but it does not work when password is pasted (or typed faster than 100 characters per second)

@max-au
Copy link
Member Author

max-au commented Mar 8, 2021

erlang/otp#4337

@starbelly
Copy link
Member

Let me add a few comments on this :

  • The original issue I created on OTP is around stty, while that's nice to have, it doesn't work on windows and possibly some other platforms. That should be noted. Thus, even if that problem is fixed (which is should be regardless, sans something be dumb in the example code) it surely should be, but it's not universal. Of course one could hack on the tty driver for windows perhaps, but eh...

  • I made an attempt to carry over the get_password implmenetation from group.erl into user_drv.erl but I could not get it to work. Every way I tried resulted in an VM crash per blocking. The models are completely different, yet I still feel like there should be a way to get this to work. The implementation in group.erl works quite well, not so hacky like what we have in rebar3_hex and mix/hex.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants