Richard Heathfield
10/7/2014 10:54:00 AM
Ben Bacarisse wrote:
> RichD <r_delaney2001@yahoo.com> writes:
>
>> Something occurred to me recntly - bicycle locks
>> as examples of one way functions, so useful in
>> encryption. That is, easy to compute in encryption,
>> but intractable for decrytion, lacking the key.
>
> I don't think that's a good analogy for a one-way function. Although
> all one-way functions have, in some very abstract sense, a "key" (the
> function's inverse is, I suppose, a key) they are not, usually,
> invertable with some small amount of data acting as a key.
I think RSA is a counter-example, isn't it? (More on that in a second.)
It is unfortunate for the OP that the world has beaten him to it on this
occasion. It is indeed the case that bicycle locks (or padlocks in general)
are a good analogy for a one-way function.
Consider: Alice designs a padlock that is unique to her. She makes one key
to fit it. She then manufactures a million Alice-locks, and distributes them
to post offices around the world. Now, whenever you want to send Alice
something securely, you pop it in a box, go to the post office, ask for an
Alice-lock, and lock the box with it. That's the one-way function (you don't
need a key for that bit). You check that you cannot unlock the box. When you
are satisfied that it is indeed so securely locked that not even you, the
sender, can open it, you send it to Alice.
All the postal workers involved in the delivery try to peek in the box (co-
incidentally, they are all called Eve), but none of them can, because they
don't have the key for the Alice-lock. (If it's a combination lock, they
could try every combination, but Alice can fix that by designing a lock with
enough digits to make trying every combination infeasible.)
Alice, however, can easily open the box, because she has the key.
The Alice-lock is Alice's Public Key. The combination is her Private Key.
RSA is a counter-example to your claim because it is a one-way function that
is invertible with only a handful of bytes. Even if you go completely
bananas with your key and have 8192 bits, that's still only a kilobyte of
data, which is considerably less than the number of bytes used to encode
this Usenet article.
--
Richard Heathfield
Email: rjh at cpax dot org dot uk
"Usenet is a strange place" - dmr 29 July 1999
Sig line 4 vacant - apply within