TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Silly code comments you've left to yourself

8 pointsby matthover 17 years ago
# MD5 TESTING - Adding time salt to passwords won't work, it isn't reversible!<p>echo 'MD5(): ' . md5(date('ymdHis', time()) . 'password-is-yummy-salty-safety-' . $pw);<p>A very silly, what-the-hell-was-I-thinking-when-I-wrote-this note to myself.

7 comments

DarrenStuartover 17 years ago
// [-:) (:-[ <p>I still don't know what I meant but I think I was just doodling.
评论 #93399 未加载
staunchover 17 years ago
I can't think of any silly comments from my code right now, but I have a new one for you :-)<p><pre><code> # ...your computer really doesn't care if you seperate the password from the nonce with a dash; it's a computer, not a 2nd grade teacher[1] echo 'MD5(): ' . md5(date('ymdHis', time()) . 'password-is-yummy-salty-safety-' . $pw); </code></pre> 1. <a href="http://www.matasano.com/log/958/enough-with-the-rainbow-tables-what-you-need-to-know-about-secure-password-schemes/" rel="nofollow">http://www.matasano.com/log/958/enough-with-the-rainbow-tabl...</a>
评论 #93309 未加载
评论 #93214 未加载
daltonlpover 17 years ago
# Locked and loaded. Data structures assembled. Cry havoc and let slip the dogs of multi-pass rendering.
ptnover 17 years ago
I can't remember a silly comment right now, but I do remember that, because I couldn't think of anything better, I named one of my variables "charlie" . It wasn't a serious program though and that wasn't an important variable either. Still, I then read it and laughed.
eduover 17 years ago
/<i></i><i> the bomb! </i><i></i>/<p>just before an error-prone piece of code. My colleagues had a laugh when they found it. Since then, now I mark the "dangerous zones" with:<p><pre><code> /*** here be ASTEROIDS ***/</code></pre>
brlewisover 17 years ago
I have a page on ourdoings.com that only I use, for the purpose of crediting users. (I've been given cash a few times, and I credit bug-finders.) Just now I added functionality to impersonate a user. The success message is:<p>You feel like a new person.
kashifover 17 years ago
My silliest yet...<p>#TODO: