473,795 Members | 2,875 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Strong Passwords

Hi

I'm in the process of writing a program to ensure that a user will setup a
strong password for a particular application. One of the requirements is:-

A Strong Password must include characters from at least three of the
following four categories...
Uppercase characters (A though Z)
Lowercase characters (a though z)
Numeric digits (0 through 9)
Non-alphanumeric characters (!, $, #, %, etc.)

Does anybody know of a vb class, api or addin that can do this?

thanks
Nov 21 '05 #1
3 1692
Hi,

You can use a regular expression for that.

http://www.regexlib.com/REDetails.aspx?regexp_id=1111

Dim regStrongPasswo rd As New
System.Text.Reg ularExpressions .Regex("(?=^.{6 ,10}$)(?=.*\d)( ?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()_+}{" ":;'?/>.<,])(?!.*\s).*$")
Trace.WriteLine (regStrongPassw ord.IsMatch("1A 2a$5"))
Trace.WriteLine (regStrongPassw ord.IsMatch("ap ple"))
Ken
---------------------------
"jez123456" <je*******@disc ussions.microso ft.com> wrote in message
news:FE******** *************** ***********@mic rosoft.com...
Hi

I'm in the process of writing a program to ensure that a user will setup a
strong password for a particular application. One of the requirements is:-

A Strong Password must include characters from at least three of the
following four categories...
Uppercase characters (A though Z)
Lowercase characters (a though z)
Numeric digits (0 through 9)
Non-alphanumeric characters (!, $, #, %, etc.)

Does anybody know of a vb class, api or addin that can do this?

thanks

Nov 21 '05 #2

"jez123456" <je*******@disc ussions.microso ft.com> wrote in message
news:FE******** *************** ***********@mic rosoft.com...
Hi

I'm in the process of writing a program to ensure that a user will setup a
strong password for a particular application. One of the requirements is:-

A Strong Password must include characters from at least three of the
following four categories...
Uppercase characters (A though Z)
Lowercase characters (a though z)
Numeric digits (0 through 9)
Non-alphanumeric characters (!, $, #, %, etc.)

Does anybody know of a vb class, api or addin that can do this?

thanks


you may as well try Regular expressions
the pain of learning it will be well worth the trouble.
you can save many lines of <future> code - (however obfusicated it may look)
(its the beer that made Perl famous )
I think that's where the term "Swiss Army Chain Saw" was earned.
Nov 21 '05 #3

"jez123456" <je*******@disc ussions.microso ft.com> wrote in message
news:FE******** *************** ***********@mic rosoft.com...
Hi

I'm in the process of writing a program to ensure that a user will setup a
strong password for a particular application. One of the requirements is:-

A Strong Password must include characters from at least three of the
following four categories...
Uppercase characters (A though Z)
Lowercase characters (a though z)
Numeric digits (0 through 9)
Non-alphanumeric characters (!, $, #, %, etc.)

Does anybody know of a vb class, api or addin that can do this?

thanks


you may as well try Regular expressions
the pain of learning it will be well worth the trouble.
you can save many lines of <future> code - (however obfusicated it may look)
(its the beer that made Perl famous )
I think that's where the term "Swiss Army Chain Saw" was earned.
Nov 21 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
4304
by: Florian Lindner | last post by:
Hello, I've a scripts that allows limited manipulation of a database to users. This script of course needs to save a password for the database connection. The users, on the other hand need read permission on the script in order to execute it but should not be able to read out the password. What is the common way to solve this problem? My current way is to allow the users to execute the script with sudo while not having read permission...
14
4074
by: Miranda | last post by:
Hi, I have a ASP/vbscript program that generates random passwords. The problem is I need to insert those passwords into an Access database of 327 clients. I have the random password program generating the 327 passwords, but have had no luck inserting them. =============================================== Here is the code that generates the passwords: =============================================== <% Option Explicit %>
1
1435
by: Bryan Harrington | last post by:
Hello all, I have a requirement to enforce strong passwords from a customer, and I can only assume they won't be the last to ask for it. Does anyone have any pointers for handling complex passwords? In this particular case I need to enforce between 6 and 16 Case Sensitive AlphaNumerics with at least one non-AlphaNumeric character. min and max I've got, but I'm not sure where to go with the rest.
0
930
by: Dan Sikorsky | last post by:
In my Login.aspx, how can I turn off the requirement for using strong passwords? Then web app is on a LAN not connected to the internet. -- Dan Sikorsky, MSCS BSCE BAB
1
250
by: jez123456 | last post by:
Hi I'm in the process of writing a program to ensure that a user will setup a strong password for a particular application. One of the requirements is:- A Strong Password must include characters from at least three of the following four categories... Uppercase characters (A though Z) Lowercase characters (a though z) Numeric digits (0 through 9)
15
2519
by: Dino Vliet | last post by:
Hi folks, probably this is a question you've heard so many times but I wasn't able to find a solution to it. I'm using a shell script to create a textfile for me. It looks like #!/usr/local/bin/bash psql -c "select foo from bar;" -d database1 -t psql -c "\q" -d database1 exit 0
1
3433
by: jake | last post by:
Hi. I am building web apps in visual web developer 2005 express and SQL 2005 express. Users have complained about the strong password policy, so I would like to change it to somthing like at least 5 letters and 1 number. Thanks for the help in advance. -Jake
5
5094
by: Macca | last post by:
Hi, My application uses passwords to limit access to certain parts of the app. I was considering storing these in my database but have heard that there can be problems with this. I have heard using the Global Assembly Cache (GAC) would be a good place. Does anyone have any opinions on this and how would I implement the GAC scenario?
19
2454
by: Cord-Heinrich Pahlmann | last post by:
Hi, I have written a tool wich de/encrypts a few of my forum and bloggin-Passwords. My question is how secure it is. The following describes how I have encrypted my passwords. When I log in, the Login-Password is changed into a md5-Hash and is compared to the login-password in the db. If the passwords are the same the use is logged in (common procedure). Then the clear-text
2
2103
by: Simon.Whiteside | last post by:
If someone has created a database for me and transferred it over is there any way that I can check I have full access to all areas? I am a beginner with Access and so the development has been done by a temporary employee who has now handed the database over to me. Not that I think he is an untrustworthy character but I would sleep easier at night if I could check he has given me 100% of the database and three months down the line I am...
0
9673
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9522
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10002
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7543
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6783
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5565
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2921
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.