Click here to Skip to main content
15,894,896 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: password policy Pin
Marc Clifton5-Oct-16 2:25
mvaMarc Clifton5-Oct-16 2:25 
PraiseRe: password policy Pin
raddevus5-Oct-16 2:44
mvaraddevus5-Oct-16 2:44 
GeneralRe: password policy Pin
Rage5-Oct-16 3:14
professionalRage5-Oct-16 3:14 
RantRe: password policy Pin
Brisingr Aerowing5-Oct-16 4:28
professionalBrisingr Aerowing5-Oct-16 4:28 
GeneralRe: password policy Pin
Rage5-Oct-16 4:35
professionalRage5-Oct-16 4:35 
GeneralRe: password policy Pin
PeejayAdams5-Oct-16 4:30
PeejayAdams5-Oct-16 4:30 
GeneralRe: password policy Pin
Kirill Illenseer5-Oct-16 21:55
Kirill Illenseer5-Oct-16 21:55 
GeneralRe: password policy Pin
irneb5-Oct-16 22:26
irneb5-Oct-16 22:26 
It could perform such from the other way round. E.g. take the new password, generate a set of permutations by changing one or two characters in it, compute the hashes for each and check if such hash equals the original password.

Of course, this can become a lot more complicated - especially if starting to compare more than just one character being optional. Thus such calc could take a lot of time. Not to mention, it "should" be done client-side else you're sending a plaintext / encrypted password to the server - which then does these calcs. The whole idea of a one-way hash is so you never have the actual password outside your own client machine.

Alternatively, another idea which may be even better ... Pre-calculate hashes for all the "bad-list" passwords (i.e. those stuff where passwords are leaked and compared to just how many people use them). Then whenever a user enters a new password, compare its hash to the table of pre calculated hashes. Again, it may become a bit more computationally intense once you have to throw salting into the mix, unless a salt can be applied to a hash at a later stage instead of to the password before calculating the hash (again algorithm dependent). But I think this way should avoid most of the major issues, while using much less computations than the permutation idea.

GeneralRe: password policy Pin
JackPeacock6-Oct-16 2:12
professionalJackPeacock6-Oct-16 2:12 
GeneralRe: password policy Pin
scmtim6-Oct-16 5:04
scmtim6-Oct-16 5:04 
GeneralRe: password policy Pin
Gerry Schmitz6-Oct-16 8:16
mveGerry Schmitz6-Oct-16 8:16 
GeneralWireless guitar system Pin
V.4-Oct-16 22:03
professionalV.4-Oct-16 22:03 
GeneralRe: Wireless guitar system Pin
glennPattonWork34-Oct-16 22:36
professionalglennPattonWork34-Oct-16 22:36 
JokeRe: Wireless guitar system Pin
Kornfeld Eliyahu Peter4-Oct-16 22:47
professionalKornfeld Eliyahu Peter4-Oct-16 22:47 
GeneralRe: Wireless guitar system Pin
Michael Martin4-Oct-16 23:04
professionalMichael Martin4-Oct-16 23:04 
JokeRe: Wireless guitar system Pin
Johnny J.4-Oct-16 23:10
professionalJohnny J.4-Oct-16 23:10 
GeneralRe: Wireless guitar system Pin
Rage5-Oct-16 3:15
professionalRage5-Oct-16 3:15 
GeneralRe: Wireless guitar system Pin
GenJerDan5-Oct-16 5:17
GenJerDan5-Oct-16 5:17 
GeneralRe: Wireless guitar system Pin
Munchies_Matt5-Oct-16 6:13
Munchies_Matt5-Oct-16 6:13 
GeneralRe: Wireless guitar system Pin
GenJerDan5-Oct-16 6:14
GenJerDan5-Oct-16 6:14 
GeneralRe: Wireless guitar system Pin
Munchies_Matt5-Oct-16 6:24
Munchies_Matt5-Oct-16 6:24 
GeneralCCC OTD 2016-10-05 Pin
OriginalGriff4-Oct-16 22:01
mveOriginalGriff4-Oct-16 22:01 
GeneralRe: CCC OTD 2016-10-05 Pin
LabVIEWstuff4-Oct-16 22:08
LabVIEWstuff4-Oct-16 22:08 
GeneralRe: CCC OTD 2016-10-05 - We have a winner! Pin
OriginalGriff4-Oct-16 22:12
mveOriginalGriff4-Oct-16 22:12 
GeneralRe: CCC OTD 2016-10-05 Pin
OriginalGriff4-Oct-16 22:40
mveOriginalGriff4-Oct-16 22:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.