Name:
Anonymous
2012-12-06 2:05
Interesting. DH *can* actually asymmetrically encrypt short messages directly.
Alice's public key is (ga mod p, g, p), private key is a.
Bob wants to send message 0 < m < p. He picks a random b and sends Alice (m(ga)b mod p, gb mod p).
Alice then computes m(ga)b (gb)-a = mgab g-ab = m.
let's see how long it takes before someone writes a 2 line perl version of this