You're looking at Less Wrong's discussion board. This includes all posts, including those that haven't been promoted to the front page yet. For more information, see About Less Wrong.

Omid comments on Stupid Questions March 2015 - Less Wrong Discussion

5 Post author: Gondolinian 03 March 2015 11:37PM

You are viewing a comment permalink. View the original post to see all comments and the full post content.

Comments (199)

You are viewing a single comment's thread. Show more comments above.

Comment author: sixes_and_sevens 05 March 2015 09:53:34AM *  7 points [-]

Let's make sure we're talking about cryptographic hashing functions.

Let's say I make a prediction that Barack Obama is a werewolf. I don't want anyone to know I've made this prediction, because otherwise the Secret Werewolf Police will come and eat me, but I do want to lord it over everyone after the fact.

I take the string "Barack Obama is a werewolf" and I put it through a hashing function, (for purposes of this example, the hashing function MD5). This produces the output 37ecb0a3164e6422bedc0f8db82e45ec. The original string about Barack Obama is not recoverable from this output, because MD5 is a lossy function, but anyone else putting that string through the MD5 hashing function will get the same output. The hash output is like a fingerprint for the original string.

So if I put 37ecb0a3164e6422bedc0f8db82e45ec in a public place a year before Barack Obama transforms into a werewolf on live television, after the fact I can give people the original string and they can verify it for themselves against the hash output.

I use a Chrome plugin for most tasks that involve basic encoding of text values. (If I'm honest, I mostly use it for rot13, and more exotic uses aren't that common). There are also online hash generators for different hashing functions. Some popular hashing functions for this purpose are MD5 and SHA1.

Does this answer your question?

Comment author: Omid 06 March 2015 06:30:34AM 0 points [-]

You said you use this for ROT13ing things. How does that work? Suppose I wanted to make a Facebook post that gave my friends the option of knowing Obama is a werewolf, but also gave them the option for them not to know this if they'd rather be surprised later.

Comment author: sixes_and_sevens 06 March 2015 10:34:14AM 1 point [-]

The Chrome plugin I linked to lets you carry out basic encoding functions in the browser, which includes stuff like rot13, URL-safe strings, a couple of hashing functions, etc.