# Can I find my password?

**URL:** https://boards.straightdope.com/t/can-i-find-my-password/234682
**Category:** Factual Questions
**Created:** [March 16, 2004, 6:55pm UTC](https://boards.straightdope.com/t/can-i-find-my-password/234682 "2004-03-16T18:55:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Kent\_Clark](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/kent_clark/32/105_2.png) [@Kent\_Clark](https://boards.straightdope.com/u/Kent_Clark)
#### Post date: [March 16, 2004, 6:55pm UTC](https://boards.straightdope.com/t/can-i-find-my-password/234682/1 "2004-03-16T18:55:02Z")

</div>

A couple of weeks ago at work I registered on a password-protected website. Since then, I’ve been able to log on from my work computer with no problem. (Yes, it is a work-friendly site.)

Over the weekend I tried to log on from my home computer. I kept getting the message that my password was invalid. Now I’m pretty sure I know what my password is, but perhaps I hit a typo or a misplaced capital letter or some damn thing when I typed it.

I emailed the “lost your password?” field, but the website hasn’t responded.

I looked in the Cookie file on my work computer. The site’s there, but the cookie is a long string of numbers, no text.

Is there anyway I can figure out just what the hell I typed, in case the site never responds to my desperate queries?

---

<div class="post-metadata">

### Author: ![micco](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@micco](https://boards.straightdope.com/u/micco)
#### Post date: [March 16, 2004, 7:06pm UTC](https://boards.straightdope.com/t/can-i-find-my-password/234682/2 "2004-03-16T19:06:34Z")

</div>

Cracking passwords is a topic the mods are unlikely to let slide, but you might handle this without doing anything nefarious. The site is using a cookie as a “remember me” tool to keep you logged in, so you can probably just copy that cookie entry from your work computer to your home computer. Barring that, you’ll need to wait for the website to respond to your forgotten password query.

It is very unlikely that the cookie on your computer actually contains your password, even in hashed form. That would be fairly bad design on their part. It’s more likely to be a random string like a server-generated session ID that they record in your cookie and in their database to keep a session alive between visits.

---

<div class="post-metadata">

### Author: ![Q.E.D](https://avatars.discourse-cdn.com/v4/letter/q/51bf81/32.png) [@Q.E.D](https://boards.straightdope.com/u/Q.E.D)
#### Post date: [March 16, 2004, 7:09pm UTC](https://boards.straightdope.com/t/can-i-find-my-password/234682/3 "2004-03-16T19:09:47Z")

</div>

> [@kunilou](#):
>
> Is there anyway I can figure out just what the hell I typed, in case the site never responds to my desperate queries?

Nope. And if the Lost Password link didn’t respond, it may be be because you mistyped your email address as well. About the only things you can do are 1) copy the work cookie to disk and put it in the appropriate folder on your home computer, 2) email the webmaster or suppoert person and explain the situation, or 3) sign up with a new account and start over again.

---

<div class="post-metadata">

### Author: ![Q.E.D](https://avatars.discourse-cdn.com/v4/letter/q/51bf81/32.png) [@Q.E.D](https://boards.straightdope.com/u/Q.E.D)
#### Post date: [March 16, 2004, 7:12pm UTC](https://boards.straightdope.com/t/can-i-find-my-password/234682/4 "2004-03-16T19:12:15Z")

</div>

> [@micco](#):
>
> It is very unlikely that the cookie on your computer actually contains your password, even in hashed form.

It probably does, but a hash is generally fairly secure. I know for a fact that the SDMB cookies _do_ contain your username AND password in hashed form.

---

<div class="post-metadata">

### Author: ![micco](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@micco](https://boards.straightdope.com/u/micco)
#### Post date: [March 16, 2004, 7:26pm UTC](https://boards.straightdope.com/t/can-i-find-my-password/234682/5 "2004-03-16T19:26:56Z")

</div>

> [@Q.E.D.](#):
>
> It probably does, but a hash is generally fairly secure.

A hash is only as secure as the underlying password. Dictionary attacks will succeed easily on bad passwords and fail on good ones.

> [@](#):
>
> I know for a fact that the SDMB cookies _do_ contain your username AND password in hashed form.

It’s bad design in general because it puts all the info you need for a dictionary attack on an unsecured channel. Even sites which use SSL for the login phase may switch to unsecured URLs for content once you’re authenticated. The cookie gets included in every HTTP query, so anyone monitoring traffic can assemble their own password file just by looking at these cookies. SDMB doesn’t use SSL for logins (though they do appear to hash the password in client-side code) so it’s kind of a moot point in this case. This is a pretty low priority threat, but there are better ways to handle it.

---

<div class="post-metadata">

### Author: ![Q.E.D](https://avatars.discourse-cdn.com/v4/letter/q/51bf81/32.png) [@Q.E.D](https://boards.straightdope.com/u/Q.E.D)
#### Post date: [March 16, 2004, 7:31pm UTC](https://boards.straightdope.com/t/can-i-find-my-password/234682/6 "2004-03-16T19:31:34Z")

</div>

> [@micco](#):
>
> A hash is only as secure as the underlying password. Dictionary attacks will succeed easily on bad passwords and fail on good ones.

Agreed. Which is why banks and other sites which really _do_ need good security don’t use cookies as logins. But for most uses, cookies with hashed passwords are plenty secure. It’s not like someone can drain my bank account or forge my identity if they manage to crack my SDMB account.

---

<div class="post-metadata">

### Author: ![micco](https://avatars.discourse-cdn.com/v4/letter/m/5f8ce5/32.png) [@micco](https://boards.straightdope.com/u/micco)
#### Post date: [March 16, 2004, 7:40pm UTC](https://boards.straightdope.com/t/can-i-find-my-password/234682/7 "2004-03-16T19:40:31Z")

</div>

> [@Q.E.D.](#):
>
> It’s not like someone can drain my bank account or forge my identity if they manage to crack my SDMB account.

But the OP wasn’t talking about SDMB. We have no way of knowing how secure the site they were visiting was, and my comment was simply intended to warn them that trying to crack the cookie might be pointless because it is wrong to assume the password is even there. It might be, but it might not.

I’m not criticizing SDMB’s technique at all because, as you point out, the risk is low. That doesn’t mean the OP can necessarily apply what works at SDMB to all other sites.
