Simple Console Password Capture Utility(dotnet.org.za)

submitted by schalkvanwykschalkvanwyk(1335) 3 years, 7 months ago

For command line utilities, that require capturing a password, you may find this C# utility class to capture a password useful. Features: 1. Allows you to specify a prompt, e.g. "Enter password: " 2. Caters for masking or unmasking the displayed password, e.g. abc123 or ****** 3. Allows you to specify the masking character, e.g. - instead of * 4. Caters for a maximum length, or unlimited length passwords. 5. Caters for processing the backspace key so the user can make corrections. 6. Uses the System.Security.SecureString class (correctly) to ensure that the password is encrypted in memory.

add a comment |category: |Views: 5

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:
Comments:

No comments so far

information Login or create an account to comment on this story