I'm working on console application for OS X. It is native application in Xcode in swift. User is going to provide his personal password into console. This is one-time action, when password is provided, it is stored by application into KeyChain.
I would like to support user with secure password input. For reading username I use readLine(). I don't want to use same for password as:
Password is visible when user is typing it.
When user press enter, it is still visible on screen.
So far I have 2 ideas how can I prompt for password securely:
Use some kind of ReadChar() function and after each key press, clear console screen, so letter entered by user will not be visible on screen.
Force readLine() function to mask entered characters.
I was not able to find any function that can capture one customisation entered by user. Also I was not able to identify function that I can use to clear console screen. For second idea: In Apple development documentation, I was not able to find any function that will mask user input.
Can you please advice how to overcome this challenge?
Related
I am trying to make the Pre-launch report work well to cover more screens (beyond the signin screen) by providing Sign-in credentials, however after providing the testing account the crawl still cannot beyond the Sign-in screen. This is my configuration:
I can confirm the username/password resource name are correct, but in my app, they are in two separated screens.
I.e.: Input username (actually it requires a phone number) first then tap on Next button in this screen to see the screen for typing password (actually it is the 2fc via SMS),
and after typing in 2fc, the app logs the user in automatically, so there is no Sign-in button.
My question is does Google supports my use case stated as above? I.e.: if username and password are not in the same screen, is Google still able to crawl beyond the sign-in screen?
The crawler will use the provided sign-in credentials when it matches the corresponding resource id on a given screen. So, having username and password on two different screens is not a problem. The tricky part is getting from one screen to another (in your case, it is clicking the Next button) such that the crawler has an opportunity to type in the password. If the crawler does not perform this step on its own, you can guide it with a Roboscript - that is, instead of using sing-in credentials, record a Roboscript in which you type in the username, click Next, type in the password (basically, the steps you mentioned above), and then upload this Roboscript for your pre-launch report.
I'm using a batch file to map local drive A: to another network location. The batch file prompts the user for a username, followed by a password.
How would I implement the same functionality in a popup UI instead of relying on the console? The console doesn't provide any feedback during password entry. I want something like this picture:
A UI would be more convenient for the users because they wouldn't have to retype the entirety of our standard fifteen character passwords if they've made a mistake.
Hello Stackoverflow Community,
I was wondering if it would be possible to change the way a user logs in using Windows. I currently have Windows 8.
What I mean by this question is that instead of a user entering a password to log into their account or using a finger print scanner, we can have something like a matrix of numbers (like the movie) that keeps scrolling up or down. A user has to click in a certain way or combination. Or the user has to drag certain numbers over others in different columns (some sort of idea along those lines using some sort of algorithm).
Is it even possible to change the way a user logs into their account on Windows? I do have an old laptop I can mess around with.
Thank you.
Windows has 3 built-in Sign-in Options
Login using a Password
Login using a Picture Password (you login using three gestures saved on a picture)
Login using a 4 Digit PIN
Apart from this you can get rid of Windows Sign-in option by running 'netplwiz' in run box and unchecking the box that says “Users must enter a user name and password to use this computer”.
You can then use software like Eusing Maze Lock
XUS PC Lock
Also using fingerprints is possible if you have a fingerprint reader. Check if 'Biometrics\Credential Provider' registry entry for this is disabled if you are unable to get a fingerprint option in Sign-in options.
I just want to integrate windows with my already developed system.
I need login screen that contains window user name And when i click on login button some other page or popup should ask me my system user name and password along with one button.
without my system user name and pass word user can not login to computer.
i just wanted to know that is it possible or not.
If it is possible than give me a way please..
Thank you.
I have an app which asks the user for a username and password which I want to be saved (so the user doesn't have to reenter his data on every launch).
Of course I need to acces the username and password on the next application start. Can you tell me how to do it?
One more thing: the username (and pw) is saved in the AppDelegate but I need it in a different class later..
The proper place to keep a username/password is in the keychain. It's made easier with open source wrappers such as SSKeychain.
The way I suspect you want to do it is with NSUserDefaults, which you can read about in the Preferences and Settings User Guide.
Either way you can get at the information quite easily from elsewhere in your application.
But you really should do it the first way.
Give it a try and come back and ask a more specific question if you can't get it to work.