|
||||||
| Programming Theory Discuss programming theory, algorithm efficiency, logic, and other any other category where math and computer science overlap. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
Prime powers of numbers have special properties that do not exist with composite powers. If you study Number Theory you can learn more about it, but it can get pretty deep pretty fast. Think of it as the equivalent of calculus on integers.
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
|
|||||
|
Here's a like that explains some of how it works: RSA - Wikipedia, the free encyclopedia
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
| Sponsored Links |
|
|
|
|||
|
Table of mathematical symbols - Wikipedia, the free encyclopedia
This should be helpful. |
|
|||||
|
1. Choose two distinct large random prime numbers p and q
For this I'll use small primes: 23 and 29 2. Compute n = p q ( n is used as the modulus for both the public and private keys) n = 23*29 = 667 3. Compute the totient: phi(n) = (p-1)(q-1) phi(n) = 22 * 28 = 616 4. Choose an integer e, such that 1 < e < phi(n) and e and phi(n) share no factors other than 1 (i.e. e and phi(n) are coprime) (e is released as the public key exponent) Prime factors of phi(n) are 2,2,2,7,11, so e could be 13*17 = 221 5. Compute d to satisfy the congruence relation d e equivalent to 1 mod phi(n); i.e. de = 1 + k phi(n) for some integer k. ( d is kept as the private key exponent) After a little work, we get: d = (some value higher than 30) where (d*e) % 616 = 1
__________________
CodeCall Blog | CodeCall Wiki | Shareware | Linux Forum Programming is a branch of mathematics. |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| finding square root and prime numbers.? | aladin | General Programming | 1 | 11-07-2007 08:49 PM |
| problem with large numbers | saurav | C and C++ | 4 | 10-11-2007 05:52 PM |
| *!!! HELP: I need a C program that converts words into numbers and vice versa !!!* | james24587 | C and C++ | 2 | 10-01-2007 12:10 PM |
| Return random numbers without duplicates | Paradine | PHP Tutorials | 0 | 08-26-2007 03:07 PM |
| Javascript: Prime or not | reachpradeep | Javascript | 4 | 08-23-2007 09:58 AM |
| WingedPanther | ........ | 2753.6 |
| Xav | ........ | 2704 |
| Brandon W | ........ | 1702.32 |
| John | ........ | 1207.73 |
| marwex89 | ........ | 1175.24 |
| morefood2001 | ........ | 966.05 |
| dcs | ........ | 655.75 |
| Steve.L | ........ | 475.59 |
| orjan | ........ | 418.58 |
| Aereshaa | ........ | 383.54 |