Lost Password?


Go Back   CodeCall Programming Forum > Software Development > General Programming > Programming Theory

Programming Theory Discuss programming theory, algorithm efficiency, logic, and other any other category where math and computer science overlap.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-08-2008, 02:01 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default Prime Numbers..

What is the deal with prime numbers in encryption? I see this a lot of time.. but what is the deal with them? Using prime numbers is more secure?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 01-10-2008, 11:56 AM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,418
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-10-2008, 02:02 PM
monkey_instinct's Avatar   
monkey_instinct monkey_instinct is offline
Learning Programmer
 
Join Date: Dec 2007
Posts: 88
Rep Power: 4
monkey_instinct will become famous soon enough
Default

Checking if a number is hard is extremely hard for relatively big numbers. There's no formula for getting the nth prime number so, the reason of using prime number for encryption must be something related to that property.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 01-11-2008, 02:04 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

Quote:
Originally Posted by WingedPanther View Post
If you study Number Theory you can learn more about it
Seems like Math to me.. Doesn't seem to be listed in my favorite subjects list.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 01-14-2008, 12:16 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,418
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #6 (permalink)  
Old 01-14-2008, 01:04 PM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

Thanks, I'm sure I will not understand everything, but thanks for helping. I will read it as soon as I post this message.

EDIT:-

For example in here:


what are those three lines supposed to mean?

Last edited by TcM; 01-14-2008 at 01:20 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 01-14-2008, 01:49 PM
Maurice_Z Maurice_Z is offline
Learning Programmer
 
Join Date: Nov 2007
Location: Poland
Posts: 35
Rep Power: 4
Maurice_Z is on a distinguished road
Send a message via ICQ to Maurice_Z Send a message via AIM to Maurice_Z Send a message via MSN to Maurice_Z Send a message via Yahoo to Maurice_Z
Default

Table of mathematical symbols - Wikipedia, the free encyclopedia
This should be helpful.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 01-15-2008, 11:49 AM
TcM's Avatar   
TcM TcM is offline
Code Warrior
 
Join Date: Aug 2006
Location: In a technologic world :p
Posts: 8,332
Rep Power: 68
TcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of lightTcM is a glorious beacon of light
Default

Ow yeah! congruent, I knew that I already saw that symbol... but I couldn't remember what it was, I used this in Math...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 01-15-2008, 12:17 PM
WingedPanther's Avatar   
WingedPanther WingedPanther is offline
Super Moderator
 
Join Date: Jul 2006
Age: 35
Posts: 3,418
Last Blog:
wxWidgets is NOT code ...
Rep Power: 37
WingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to beholdWingedPanther is a splendid one to behold
Default Step by step example

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.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

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


All times are GMT -5. The time now is 08:50 AM.

Contest Stats

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

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 100%


Complete - Celebrate!

Ads