Article View: uw.general
Article #260Two passwords for the same account
From: der Mouse
Date: Tue, 07 Jun 1994 16:23
Date: Tue, 07 Jun 1994 16:23
51 lines
3744 bytes
3744 bytes
[Note the Followup-To:. The (ridiculously long) list of newsgroups all seem irrelevant to technical password issues. If you know of a better place than comp.misc, feel free to move this there.] > That reminds me of a question I had: > Is it possible for a person to have 2 passwords for 1 account? > Here is my reasoning: > When your password is checked, what you type (as your password) is > encrypted and compared with the entry in /etc/passwd. (There is no > decryption algorithm.) Or rather, decryption is computationally expensive; the security of it depends on the assumption that it's sufficiently expensive to be infeasible. A trivial decryption algorithm exists; just try all 128^8 possible passwords. (Yes, I know the number is actually a bit less than 128^8. The exact number is irrelevant to my point.) > If the encryption guaranteed that no 2 passwords would have identical > encrypted forms, that would seem to make it easier to crack. Would it? I'm not enough of a cryppie to be sure, but it's not clear to me that it would. > So it seems more likely that no such guarantee exists. Therefore 2 > passwords might work for the same account. > Am I right? As I understand it, you are correct in that no attention has been paid to the possibility that two typed strings may generate the same hashed password. Aside from the trivial observation that all strings are truncated to eight characters and thus characters past the eighth are ignored, though, finding the second string would be as hard as breaking the original password (harder, in fact, since the original password is probably something relatively easy to type, while the "other" password is likely to contain garbage like control characters). It is unlikely, though, since the password hash takes a 56-bit typed password and generates a 64-bit hash. With a hash space 256 times as large as the input space, it's extremely unlikely that any given input string will have an "alias", another string that hashes to the same thing. Thus, it's a theoretical possibility, but not exactly something you should lose any sleep over. der Mouse mouse@collatz.mcrcim.mcgill.edu
Technical Details
Message-ID:
<Mouse.Tue_Jun__7_12_07_57_1994@collatz.mcrcim.mcgill.edu>Path:
arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!gatech!bloom-beacon.mit.edu!mcrcim.mcgill.edu!collatz.mcrcim.mcgill.eduReferences:
<CqqtBG.BGE@ecf.toronto.edu> <2s15uu$55d@vixen.cso.uiuc.edu> <2s3b6r$eb6@mailer.fsu.edu> <CqH9nx.2Lq@undergrad.math.uwaterloo.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11544f,c5c2f0b1155cd1e6 X-Google-Attributes: gid11544f,public X-Google-Thread: fc3d0,c5c2f0b1155cd1e6 X-Google-Attributes: gidfc3d0,public X-Google-Thread: f504b,c5c2f0b1155cd1e6 X-Google-Attributes: gidf504b,public X-Google-Thread: f99dc,c5c2f0b1155cd1e6 X-Google-Attributes: gidf99dc,public X-Google-Thread: 115981,5316e9cdce69bce X-Google-Attributes: gid115981,public X-Google-Thread: 10c943,eb6425df834ef5c8 X-Google-Attributes: gid10c943,public X-Google-Thread: 10f6dc,5316e9cdce69bce X-Google-Attributes: gid10f6dc,public X-Google-Thread: 114af9,eb6425df834ef5c8 X-Google-Attributes: gid114af9,public X-Google-ArrivalTime: 1994-06-07 09:28:10 PST Path: arc1-ca.pugleaf.net!nntp.gmd.de!xlink.net!howland.reston.ans.net!gatech!bloom-beacon.mit.edu!mcrcim.mcgill.edu!collatz.mcrcim.mcgill.edu From: mouse@collatz.mcrcim.mcgill.edu (der Mouse) Newsgroups: uw.general,ut.general,ubc.general,ont.general,mtl.general,comp.org.eff.talk,can.infobahn,can.general,bc.general,alt.wired,alt.comp.acad-freedom.talk Subject: Two passwords for the same account Followup-To: comp.misc Date: 7 Jun 1994 16:23:17 GMT Organization: McGill Research Centre for Intelligent Machines Lines: 51 Distribution: inet Message-ID: <Mouse.Tue_Jun__7_12_07_57_1994@collatz.mcrcim.mcgill.edu> References: <CqqtBG.BGE@ecf.toronto.edu> <2s15uu$55d@vixen.cso.uiuc.edu> <2s3b6r$eb6@mailer.fsu.edu> <CqH9nx.2Lq@undergrad.math.uwaterloo.ca> NNTP-Posting-Host: thunder.mcrcim.mcgill.edu