Help me develop a public-key system (for fun)

  • Thread starter moonman239
  • Start date
  • #1
moonman239
282
0
Help me develop a public-key system (for fun) :)

I just read up on public-key encryption and now I'm kind of interested in building an algorithm of my own. How about something like this:

1) Alice could type her message to Bob into a computer

2) The computer converts the letters and characters into numbers.

3) The computer then uses Alice's public key to determine how to sort the digits.

4) The computer then uses Bob's private key to change the message to throw off frequency analysis. For example if 4 appears more frequently than 2, Bob's public key dictates that at least one 4 should be replaced with a number that will now appear more or less frequent than the 4.

5) Alice then sends this message to Bob, whose computer decrypts the message.
 

Answers and Replies

  • #2
Dragonfall
1,030
4


In a public-key scheme, you use the receiver's public key to encrypt the message. The receiver uses his private key for decryption.

Simply subbing more letters to throw off frequency analysis will still be susceptible to more advanced attacks, such as this.

Public-key encryption is very expensive, so usually the sender uses it only to send a small private key, and then use less expensive private encryption to send data.

It'll be interesting to see what kind of algorithm you can come up with, though. We need more details!
 

Suggested for: Help me develop a public-key system (for fun)

  • Last Post
Replies
1
Views
255
  • Last Post
Replies
8
Views
602
Replies
3
Views
539
  • Last Post
Replies
4
Views
577
  • Last Post
Replies
1
Views
406
  • Last Post
Replies
9
Views
700
Replies
0
Views
1K
Replies
1
Views
377
  • Last Post
Replies
2
Views
626
Replies
3
Views
697
Top