Silent pw entry not working
#28
(12-12-2022, 06:54 AM)SMcNeill Wrote: It's not, but it's part of my KeyHit library.  Works with custom keyboard layouts, and unicode printing, so it's great for people with non-American keyboards.  Wink
Cleverly, it's also another example of telling off those people who want QB64(PE) to support a subprogram written by the user which is like "sprintf()" in C. Somehow take that function and come up with an all-BASIC version of it that replaces "PRINT USING" most of the time.

I wrote a function that randomly chooses an integer from a list. That function accepts one parameter which is a string, the contents of that string is a semicolon-separated list of values. It's because otherwise we cannot do like the extended "CHR$()" implementation in Freebasic. I have done that too and more, even one called "chrud$()" which returns an 8-character string out of a 16-digit _INTEGER64 hexadecimal value.

However, to get a password and to let the user know how important it is, a function like that "ExtendedInput$" isn't necessary. Just use "INPUT$(1)" to get each character, maybe allow only backspace and [ENTER], and don't print anything that was typed. The "sudo" password requester for many Linux distros is a bit permissive IMHO.
Reply


Messages In This Thread
Silent pw entry not working - by Ra7eN - 12-11-2022, 02:06 PM
RE: Silent pw entry not working - by NasaCow - 12-11-2022, 02:30 PM
RE: Silent pw entry not working - by Ra7eN - 12-11-2022, 02:33 PM
RE: Silent pw entry not working - by Pete - 12-11-2022, 03:29 PM
RE: Silent pw entry not working - by mnrvovrfc - 12-11-2022, 03:44 PM
RE: Silent pw entry not working - by Pete - 12-11-2022, 05:03 PM
RE: Silent pw entry not working - by Ra7eN - 12-11-2022, 05:49 PM
RE: Silent pw entry not working - by Ra7eN - 12-11-2022, 05:47 PM
RE: Silent pw entry not working - by Pete - 12-11-2022, 06:01 PM
RE: Silent pw entry not working - by RhoSigma - 12-11-2022, 09:21 PM
RE: Silent pw entry not working - by mnrvovrfc - 12-11-2022, 09:33 PM
RE: Silent pw entry not working - by Pete - 12-11-2022, 11:28 PM
RE: Silent pw entry not working - by SMcNeill - 12-11-2022, 11:57 PM
RE: Silent pw entry not working - by Pete - 12-12-2022, 12:26 AM
RE: Silent pw entry not working - by SMcNeill - 12-12-2022, 12:42 AM
RE: Silent pw entry not working - by Pete - 12-12-2022, 01:53 AM
RE: Silent pw entry not working - by SMcNeill - 12-12-2022, 02:04 AM
RE: Silent pw entry not working - by Pete - 12-12-2022, 02:57 AM
RE: Silent pw entry not working - by Ra7eN - 12-12-2022, 03:17 AM
RE: Silent pw entry not working - by Ra7eN - 12-12-2022, 03:22 AM
RE: Silent pw entry not working - by bplus - 12-12-2022, 03:37 AM
RE: Silent pw entry not working - by Pete - 12-12-2022, 03:44 AM
RE: Silent pw entry not working - by Ra7eN - 12-12-2022, 05:18 AM
RE: Silent pw entry not working - by Pete - 12-12-2022, 06:13 AM
RE: Silent pw entry not working - by vince - 12-12-2022, 06:25 AM
RE: Silent pw entry not working - by SMcNeill - 12-12-2022, 06:54 AM
RE: Silent pw entry not working - by mnrvovrfc - 12-12-2022, 08:37 AM
RE: Silent pw entry not working - by Pete - 12-12-2022, 06:58 AM
RE: Silent pw entry not working - by vince - 12-12-2022, 05:47 PM
RE: Silent pw entry not working - by Pete - 12-12-2022, 06:27 PM
RE: Silent pw entry not working - by Pete - 12-13-2022, 02:02 AM
RE: Silent pw entry not working - by Pete - 12-13-2022, 02:04 AM
RE: Silent pw entry not working - by vince - 12-13-2022, 02:12 AM
RE: Silent pw entry not working - by Pete - 12-13-2022, 02:21 AM
RE: Silent pw entry not working - by SMcNeill - 12-13-2022, 09:12 AM
RE: Silent pw entry not working - by Pete - 12-13-2022, 10:29 AM
RE: Silent pw entry not working - by mnrvovrfc - 12-13-2022, 12:19 PM
RE: Silent pw entry not working - by mnrvovrfc - 12-13-2022, 11:10 AM
RE: Silent pw entry not working - by Ra7eN - 12-14-2022, 10:24 PM
RE: Silent pw entry not working - by Ra7eN - 12-14-2022, 10:26 PM
RE: Silent pw entry not working - by SMcNeill - 12-14-2022, 11:24 PM
RE: Silent pw entry not working - by Ra7eN - 12-15-2022, 12:41 AM
RE: Silent pw entry not working - by Pete - 12-21-2022, 12:32 AM
RE: Silent pw entry not working - by bplus - 12-21-2022, 04:51 PM
RE: Silent pw entry not working - by Pete - 12-21-2022, 05:14 PM
RE: Silent pw entry not working - by bplus - 12-21-2022, 05:27 PM



Users browsing this thread: 8 Guest(s)