Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
0Activity
0 of .
Results for:
No results containing your search query
P. 1
Authentication & passwords

Authentication & passwords

Ratings: (0)|Views: 1 |Likes:
Published by Steven Swafford
Lecture
Lecture

More info:

Published by: Steven Swafford on Sep 02, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

09/02/2013

pdf

text

original

 
 
L22: Authentication & passwords
Nickolai Zeldovich6.033 Spring 2012
 
 
Password-based authentication
checkpw(user, passwd):acct = accounts[user]for i in range(0, len(acct.pw)):if acct.pw[i] ≠ passwd[i]:return Falsereturn True
* Based on Tenex
 
 
Password hashing
checkpw(user, passwd):acct = accounts[user]h = SHA1(passwd)if acct.pwhash ≠ h:return Falsereturn True

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->