- 0
[C++] Displaying Asterisk's for Password Characters ("*")?
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By Skyfrog · Posted
I'm not sure I would really call that a hidden setting, and it's been around since Windows XP. -
By Gerowen · Posted
Main server is my old gaming PC from years ago. It was an older AMD Phenom based desktop until last year when I "upgraded" it. It hosts Nextcloud, Minecraft, Jellyfin and my personal website, and serves as a general purpose backup NAS. It is apparent in this picture though it needs a good dusting. Operating System: Debian GNU/Linux CPU: AMD FX 8370 GPU: AMD Radeon RX 480 8GB (Used for hardware transcoding in Jellyfin) Memory: 16GB Corsair Vengeance DDR3 @ 1,866 MT/s Boot Drive: Western Digital Blue 500GB SATA SSD Mass Storage: 4 12TB Western Digital Gold HDDs. Am using mdadm software RAID 5, with an encrypted LUKS/ext4 filesystem on the array. My "off site backup" is 3 external drives in an encrypted software RAID 0 that I keep stored outside the house and bring in once a month to sync with the internal drives. Storage drive layout: mdadm -> LUKS -> ext4 Secondary server is a Raspberry Pi 4B that hosts PiHole and Wireguard via PiVPN. I largely use the PiHole not just for ad blocking, but for parental controls on the kids. I'm actually thinking of upgrading this to an x86 mini PC so I can get secure boot, SMART monitoring of the boot drive, etc. Router is a GL-iNet Flint 2 UPS is an APC Back-UPS XS 1500G. I've had it for ages and had to replace the battery a few times. The main server monitors it since our power is pretty unreliable (see screenshot) here in eastern Kentucky. On the occasion the batteries run down the main server will automatically log into the Pi and do a graceful shutdown on it as part of its power down procedure. -
By TarasBuria · Posted
This hidden Windows 11 setting makes the system feel a lot faster by Taras Buria As a fan of fancy visuals and a good-looking UI, I upgraded to Windows 11 right after its launch. And while some of my colleagues have a hard time finding legitimate reasons to move to Windows 11, I never looked back. Still, credit where it is due: Windows 10 is still more responsive than Windows 11 (not as Windows 8 was, though). Even when running on a virtual machine, Windows 10 is snappier, and overall, it feels "lighter" than its successor. Animations in Windows 11 feel heavy and a bit wonky even on my pretty capable PC with a Radeon RX 7800 XT and a 144Hz display. While coming back to Windows 10 is not an option, I found a simple solution that not everyone is aware of. My tip of the weekend for Windows 11 users: turn off all animations (genius, I know). As soon as I turned off animations, everything became much snappier: the start menu, virtual desktop switching, context menus (not much faster, but still noticeable), Task View, and other user interface elements. The most notable improvement was virtual desktop switching: instant and without the taskbar going haywire. There are two ways to turn off animation effects in Windows 11. One is in Settings > Accessibility > Visual Effects. Toggle off "Animation effects." The second option is in the legacy "System Properties" applet. Press Win + R, type sysdm.cpl and go to the Advanced tab. Click "Settings" in the Performance section and untick the following options: Animate controls and elements inside windows Animate windows when minimizing and maximizing Animations in the taskbar Of course, you can leave some of those options enabled if you wish. Toggling all three will also turn off the "Animation effects" in the Accessibility settings section. Note that these settings affect not only the general Windows 11 UI but also animations in various apps, which, in turn, can make them feel snappier. I should also add that this simple tweak will not make your computer run faster or generate more FPS in games. It will only address janky animations, which, unfortunately, are still present in Windows 11. While my PC runs perfectly and without performance issues, slow animations play a big role in how it feels. And if you ask me, no animations are better than fancy yet choppy animations (I spoke about it in my recent "Windows 11 still grinds my gears with these 5 things" article). I recently published another guide with five important things every Windows 11 user should do. Therefore, if you want to make the OS run a bit better for you, check out that article here as well. Meanwhile, share your thoughts about Windows 11 animations in the comments. -
By AsherGZ · Posted
Is this for Black people only? You'd definitely think so from the ad. -
By M. Murcek · Posted
I have it as an icon in the Start Menu. Close enough for when I need it.
-
-
Recent Achievements
-
Johnny Mrkvička earned a badge
First Post
-
viraltui earned a badge
Week One Done
-
serfegyed earned a badge
One Month Later
-
firey earned a badge
Dedicated
-
fettermanj earned a badge
Dedicated
-
-
Popular Contributors
-
Tell a friend
Question
Calum Veteran
I have recently been developing a program incorporating all the theory we learnt in the first year of university & it is going really well. However, I have a problem with my username & password code (something we never did in my first year).
I have a couple of minor problems but the only one I think I need help with is getting the password characters to all display as "*", in order to maintain privacy. I would like them to behave like actual characters so, for example, if I pressed backspace, I would want it to delete the last character & not display another asterisks.
I have not been able to find a solution to my problem anywhere. So please may somebody help?
I'd rather not change the whole code of my username & password function as I am happy with it at the moment, so would somebody please help me with how to implement this within my current code?
If I have to change the username & password function then I am willing to do so. Also, would anybody like me to display more of my code on this matter?
The following is the function which allows the user to enter the password (but not the whole of my username & password code as that is scattered around the program). I would assume it would have something to do with this line:
The whole function works perfectly as it should, I'd just like the password to be displayed with asterisk's :)
Here is my code anyway:
Thank you in advance. I would be very grateful for any help :)
Edited by cJr.Link to comment
https://www.neowin.net/forum/topic/668608-c-displaying-asterisks-for-password-characters/Share on other sites
8 answers to this question
Recommended Posts