Click here to Skip to main content
15,922,325 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: Am I right or am I right? Pin
Keith Barrow16-Mar-15 5:10
professionalKeith Barrow16-Mar-15 5:10 
GeneralRe: Am I right or am I right? Pin
Rage16-Mar-15 5:35
professionalRage16-Mar-15 5:35 
GeneralRe: Am I right or am I right? Pin
Mark_Wallace16-Mar-15 5:13
Mark_Wallace16-Mar-15 5:13 
GeneralRe: Am I right or am I right? Pin
Rage16-Mar-15 5:31
professionalRage16-Mar-15 5:31 
JokeRe: Am I right or am I right? Pin
Pablo Aliskevicius16-Mar-15 6:00
Pablo Aliskevicius16-Mar-15 6:00 
GeneralRe: Am I right or am I right? Pin
Mark_Wallace16-Mar-15 10:02
Mark_Wallace16-Mar-15 10:02 
GeneralRe: Am I right or am I right? Pin
  Forogar  16-Mar-15 6:52
professional  Forogar  16-Mar-15 6:52 
GeneralRe: Am I right or am I right? Pin
newton.saber16-Mar-15 5:29
newton.saber16-Mar-15 5:29 
xiecsuk wrote:
I type in pass123 as my password, but unbeknown to me, the system translates that to 321ssap, hashes it and stores it

This is very close.
Actually, what you are thinking of is a salted hash.
In other words, the user types in the password, the receiving application receives the password over some secure method (like HTTPS) then it
1. takes the original password
2. adds a secret salt value
3. hashes the entire thing (pass + salt)

Since a hash is one-way, no one can really decrypt them -- that we know of.

Same Is Same
But look, every time you hash "ABCD" with the same algorithm, you get the same hash.
That means a nefarious character can create tables of hashes (rainbow tables) of common words.
Then, just compare the hash they have to the hashes stored in the datbase.

Proper Salt Probably Prevents
However, if the original value were properly salted, this would protect against that problem, unless the nefarious character should learn what the salt is. which is usually not the problem.
Usually the problem is that the passwords are stored in the database in clear text or simply not salted.
GeneralRe: Am I right or am I right? Pin
Rage16-Mar-15 5:33
professionalRage16-Mar-15 5:33 
GeneralRe: Am I right or am I right? Pin
Eddy Vluggen16-Mar-15 5:53
professionalEddy Vluggen16-Mar-15 5:53 
GeneralRe: Am I right or am I right? Pin
OriginalGriff16-Mar-15 5:54
mveOriginalGriff16-Mar-15 5:54 
GeneralRe: Am I right or am I right? Pin
Deflinek16-Mar-15 5:55
Deflinek16-Mar-15 5:55 
GeneralRe: Am I right or am I right? Pin
Keith Barrow16-Mar-15 6:09
professionalKeith Barrow16-Mar-15 6:09 
GeneralRe: Am I right or am I right? Pin
PIEBALDconsult16-Mar-15 7:38
mvePIEBALDconsult16-Mar-15 7:38 
GeneralVS2012/13 Find and Replace Window Pin
Kevin Marois16-Mar-15 4:32
professionalKevin Marois16-Mar-15 4:32 
GeneralRe: VS2012/13 Find and Replace Window Pin
Maximilien16-Mar-15 4:50
Maximilien16-Mar-15 4:50 
GeneralRe: VS2012/13 Find and Replace Window Pin
Kevin Marois16-Mar-15 5:06
professionalKevin Marois16-Mar-15 5:06 
GeneralRe: VS2012/13 Find and Replace Window Pin
Eddy Vluggen16-Mar-15 9:23
professionalEddy Vluggen16-Mar-15 9:23 
GeneralRe: VS2012/13 Find and Replace Window Pin
Bergholt Stuttley Johnson16-Mar-15 4:57
professionalBergholt Stuttley Johnson16-Mar-15 4:57 
GeneralRe: VS2012/13 Find and Replace Window Pin
Richard Deeming16-Mar-15 5:01
mveRichard Deeming16-Mar-15 5:01 
GeneralRe: VS2012/13 Find and Replace Window Pin
Kevin Marois16-Mar-15 5:07
professionalKevin Marois16-Mar-15 5:07 
GeneralRe: VS2012/13 Find and Replace Window Pin
Maximilien16-Mar-15 5:10
Maximilien16-Mar-15 5:10 
GeneralRe: VS2012/13 Find and Replace Window Pin
Rob Philpott16-Mar-15 5:33
Rob Philpott16-Mar-15 5:33 
GeneralRe: VS2012/13 Find and Replace Window Pin
Ravi Bhavnani16-Mar-15 17:10
professionalRavi Bhavnani16-Mar-15 17:10 
GeneralAPOD Pin
R. Giskard Reventlov16-Mar-15 4:24
R. Giskard Reventlov16-Mar-15 4:24 

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.