|
2011-07-28
, 10:17
|
|
Posts: 226 |
Thanked: 195 times |
Joined on Nov 2009
@ Malaysia
|
#2802
|
|
2011-07-28
, 10:27
|
Posts: 52 |
Thanked: 74 times |
Joined on Jun 2011
|
#2803
|
|
2011-07-28
, 10:29
|
|
Posts: 66 |
Thanked: 27 times |
Joined on Jul 2011
|
#2804
|
3.5 Example
Generation of a key: p and a are randomly generated, g is a primitive root of p appropriate.
p = 2357
g = 2
a = 1751
g^a mod p = 2^1751 (mod 2357) ≡1185
The public key is now P = (p ← 2357, g ← 2, g^a ← 1185), the secret key is a.
Encrypt a message m = 2035 is as follows (k is randomly chosen):
k = 1520
γ = 2^1520 (mod 2357) ≡ 1430
δ ≡ 2035 x 1185^1520 (mod 2357) ≡ 697
c = (γ ← 1430, δ ← 697)
The ciphertext, c, is then sent to the recipient. We can then calculate m from this. the message is calculated by:
m ≡ 1430^(2357-1-1751) x 697 ≡ 872 x 697 (mod 2357) ≡ 2035
The Following 4 Users Say Thank You to Cod3rror For This Useful Post: | ||
|
2011-07-28
, 10:43
|
Posts: 2 |
Thanked: 0 times |
Joined on Jul 2011
|
#2805
|
|
2011-07-28
, 10:48
|
Posts: 54 |
Thanked: 11 times |
Joined on Jul 2011
|
#2806
|
Just to update you guys, there's been invites going around to a "preview" of the N9 in Malaysia sometime soon - within the next couple of weeks. Judging from the amount of time it took for Nokia Malaysia to organize something like this for the N900 (6 months after official launch), I would assume that the N9 can't be that far off - right on track for the late August/early September launch date that's been going around on the boards for awhile.
|
2011-07-28
, 10:54
|
Posts: 130 |
Thanked: 57 times |
Joined on Jul 2010
@ UK
|
#2807
|
ElGamal Example
p is a prime, g is a primitive root of p, a is a random secret number.
p = 2789; g = 10; a = 2351
g^a % p = 10^2351 (% 2789) ≡1980
Now we have what is known as a 'public key' (p, g, g^a%p).
The public key is P = (p ← 2789, g ← 10, g^a%p ← 1980), the secret key is a (2351).
Next, we encrypt a message m = 832 as follows (k is randomly chosen, m has to be less than p):
k = 1520
γ = 10^1520 (% 2789) ≡ 2300
δ ≡ 832 x 1980^1520 (% 2789) ≡ 2271
c = (γ ← 2300, δ ← 2271)
The ciphertext, c, is then sent to the recipient.
The recipient can then calculate m from this. The message is calculated by:
m ≡ 2300^(2789-1-2351) x 2271 ≡ (2300^437) x 2271 (% 2789) ≡ 832
|
2011-07-28
, 10:54
|
Posts: 30 |
Thanked: 14 times |
Joined on Mar 2011
@ Romania
|
#2808
|
The Following 2 Users Say Thank You to aikipy For This Useful Post: | ||
|
2011-07-28
, 11:02
|
Posts: 52 |
Thanked: 74 times |
Joined on Jun 2011
|
#2809
|
The Following User Says Thank You to recluse For This Useful Post: | ||
|
2011-07-28
, 11:11
|
Posts: 2 |
Thanked: 0 times |
Joined on Jul 2011
|
#2810
|
Tags |
disapoint, eflop, epic win!, laggy interface, n9 rox, so much win, wateriswet, who cares, whyyyyy?????? |
|
to answer your question, yes, still on el gamal, because it's f***ing awesome to try to solve something like this! it's not about the n9 anymore (at least, not for me), but about the thrill! but that's something you'll never understand, I guess...