• Post Reply Bookmark Topic Watch Topic
  • New Topic

How represent message for elgamal elliptic curve in java?  RSS feed

 
almodawan saeed
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am working on my project that uses elgamal elliptic curve. I know when the elgamal ec encrypt by following steps

Represent the message m as a point M in E(Fp).
Select k ∈R [1,n−1].
Compute C1 = kP.
Compute C2 = M +kQ.
Return(C1,C2).
Where Q is the intended recipient’s public key, P is base point. My qusetion at number one.
How represent m as a point. Is point represent one character or represent group of characters. also I need code by java done this issue like Koblitz Encoding Method for ECC
I very need this code please any someone give me this code?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Unless this is an academic exercise (is it?), implementing crypto on your own is generally not a good idea. Well-established libraries like BouncyCastle have implementations, so there is no particular need, either.
 
almodawan saeed
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Welcome to JavaRanch.

Unless this is an academic exercise (is it?), implementing crypto on your own is generally not a good idea. Well-established libraries like BouncyCastle have implementations, so there is no particular need, either.


ok I need this code for my thesis. Can someone help me?
 
Paweł Baczyński
Bartender
Posts: 2083
44
Firefox Browser IntelliJ IDE Java Linux Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:Well-established libraries...

... like OpenSSL ;).
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok I need this code for my thesis. Can someone help me?

BouncyCastle web site no good?
 
Brian Schuetz
Greenhorn
Posts: 25
Eclipse IDE Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I typed bouncycastle into the address bar I got a website about inflatables repair.

When I googled it I found https://www.bouncycastle.org/java.html
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!