Solved

vb.net function to check new password's significant uniqueness

Posted on 2012-03-15
2
167 Views
Last Modified: 2012-03-19
One of our new password strength criteria is for the new password to be uniquely different from the old one.  For example I'm trying to prevent things like:
   Old Password: TestPass01
   New Password: TestPass02

I've been looking online all day.  I guess I'm just not using the correct key words in my searches.
0
Comment
Question by:Steve Sirica
2 Comments
 
LVL 38

Accepted Solution

by:
PaulHews earned 500 total points
ID: 37726400
If you are hashing the password, then you can't.  You can only tell if they are identical, which is the point of hashing.

If you are storing the password, then you should consider storing the hash instead.

Assuming you are storing the password, you could do use a longest common sub-string type of algorithm and prevent instances where the common substring is almost equal to the length of the new password.

http://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Longest_common_substring
0
 
LVL 4

Author Closing Comment

by:Steve Sirica
ID: 37737255
I can make that work.  Thanks.
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

706 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now