MadSci Network: Computer Science
Query:

Re: why can't effective security access codes be relatively short ?

Date: Mon May 1 23:42:02 2000
Posted By: Peter Pearson, Cryptologist
Area of science: Computer Science
ID: 956886900.Cs
Message:

In deciding how long an access code should be, one considers (a) how many 
guesses an attacker might try, and (b) how serious the loss would be if the 
attacker guessed correctly. 

Consider the example of the Personal Identification Number (PIN) on a 
banking smartcard. A good smartcard remembers how many PINs have been tried 
since the last correct PIN, and "locks up" (i.e., disables itself 
permanently) if the number of consecutive, erroneous PINs exceeds (say) 3. 
If the PIN is a 4-digit number, then a thief who stole your smartcard has a 
4/10,000 chance of guessing the PIN before the smartcard locks up. If the 
smartcard controls access to an account containing $1000, the average 
payoff to this exploit is $0.40, which is not sufficient to motivate many 
thieves and doesn't pose much of a threat to the cardholder. Thus, a 
4-digit number is adequate for this application.

Very different is the example of users' passwords on many mainframe 
computers. On these systems, the computer stores not the password itself, 
but a "hash" of the password. (A hash function is a complex mixing function 
for which no inverse function is known. The fastest way to find a password, 
given its hash, is to guess random passwords.) When a user logs in, the 
computer takes the password, hashes it, and compares the hash with the 
stored hash. If the hashes match, the password is assumed correct.

In theory, you can prevent hackers from stealing the file containing the 
hashes, and in theory the computer can impose slowing-down mechanisms to 
discourage testing vast numbers of guesses; but if an attacker gets the 
file containing the hashes, he can test guesses at the rate of a million 
per second, with no danger of being caught. To protect against this 
possibility, long passwords are encouraged.




Current Queue | Current Queue for Computer Science | Computer Science archives

Try the links in the MadSci Library for more information on Computer Science.



MadSci Home | Information | Search | Random Knowledge Generator | MadSci Archives | Mad Library | MAD Labs | MAD FAQs | Ask a ? | Join Us! | Help Support MadSci


MadSci Network, webadmin@www.madsci.org
© 1995-2000. All rights reserved.