473,382 Members | 1,400 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

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 1671
Hi,

You can use a regular expression for that.

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

Dim regStrongPassword As New
System.Text.RegularExpressions.Regex("(?=^.{6,10}$ )(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*()_+}{"":;'?/>.<,])(?!.*\s).*$")
Trace.WriteLine(regStrongPassword.IsMatch("1A2a$5" ))
Trace.WriteLine(regStrongPassword.IsMatch("apple") )
Ken
---------------------------
"jez123456" <je*******@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.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*******@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.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*******@discussions.microsoft.com> wrote in message
news:FE**********************************@microsof t.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
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...
14
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...
1
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...
0
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
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...
15
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...
1
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
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...
19
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,...
2
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.