p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Cryptography with Java
This is the forum to discuss the Wrox book Beginning Cryptography with Java by David Hook; ISBN: 9780764596339

Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Cryptography with Java section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #11 (permalink)  
Old October 6th, 2009, 08:35 AM
Registered User
Points: 15, Level: 1
Points: 15, Level: 1 Points: 15, Level: 1 Points: 15, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default ecdh java code

Quote:
Originally Posted by amrishodiq View Post
I write about implementation of Elliptic Curve Diffie-Hellman here: http://www.amrishodiq.co.cc/elliptic...ion-with-java/. I use Rjndael 256 as the symmetric cipher and SHA 256 as the hashing algorithm. I think this enough for you. My code require Bouncy Castle.
Quote:
Originally Posted by dgh View Post
The source for the algorithm is available in both Java and C# at http://www.bouncycastle.org

Regards,

David
Dear Sir,
I am krishna working in ECDH,I hope by this time you might have finished your coding for ECDH,can u please share that code to me and send it to my mail (kalluri_88@yahoo.co.in).I am very much in need of the code please help me out......
regards
krishna
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #12 (permalink)  
Old October 6th, 2009, 08:43 AM
Registered User
Points: 15, Level: 1
Points: 15, Level: 1 Points: 15, Level: 1 Points: 15, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

[quote=kalluri_88;247682]


Hi everybody
I am krishna working in ECDH,can any one please send me JAVA code for ECDH to my mail (kalluri_88@yahoo.co.in).I am very much in need of the code please help me out......
regards
krishna
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #13 (permalink)  
Old October 6th, 2009, 06:51 PM
dgh dgh is offline
Wrox Author
Points: 356, Level: 6
Points: 356, Level: 6 Points: 356, Level: 6 Points: 356, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: , , .
Posts: 113
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi, as I mentioned previously the source for doing ECDH is available for both Java and C# at http://www.bouncycastle.org - look on the latest releases page for Java.

Regards,

David
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #14 (permalink)  
Old October 13th, 2009, 02:08 AM
Registered User
Points: 15, Level: 1
Points: 15, Level: 1 Points: 15, Level: 1 Points: 15, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default reg-ECDH CODE

Dear David,
As you said that code for ECDH in java is available in bouncycastle.org.
I downloaded the bouncycastle package bcprov-jdk16-144 and tried to run the program but i am getting the following errors....

C:\Program Files\Java\jdk1.6.0_05\bin\bcprov-jdk16-144>javac BasicECDHExample.ja
va

C:\Program Files\Java\jdk1.6.0_05\bin\bcprov-jdk16-144>java BasicECDHExample
Exception in thread "main" java.security.NoSuchAlgorithmException: no such algorithm: ECDH for provider BC
at sun.security.jca.GetInstance.getService(GetInstanc e.java:70)
at sun.security.jca.GetInstance.getInstance(GetInstan ce.java:190)
at java.security.KeyPairGenerator.getInstance(KeyPair Generator.java:237) at BasicECDHExample.main(BasicECDHExample.java:26)


How to solve this errors.....

Regards
Krishna
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #15 (permalink)  
Old October 13th, 2009, 03:07 AM
dgh dgh is offline
Wrox Author
Points: 356, Level: 6
Points: 356, Level: 6 Points: 356, Level: 6 Points: 356, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: , , .
Posts: 113
Thanks: 0
Thanked 1 Time in 1 Post
Default

Have a look at the source for the org.bouncycastle.jce.provider.test.DHTest You will find example code for using ECDH and ECDHC.

You can find the source in the .zip and .tar.gz versions.

Regards,

David
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #16 (permalink)  
Old October 21st, 2009, 02:55 AM
Registered User
Points: 15, Level: 1
Points: 15, Level: 1 Points: 15, Level: 1 Points: 15, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Oct 2009
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi, i have generated key's for ECDH. I now want to use any symmetric algorithm(AES or rijndael 256) to encrypt and decrypt some plain text, how may i proceed?

Regards
krishna
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing the parameter in ECDH nay_ctg BOOK: Beginning Cryptography with Java 2 March 17th, 2009 02:07 AM
Code for ECDH nay_ctg BOOK: Beginning Cryptography with Java 2 March 2nd, 2009 04:26 AM
About ECDH nay_ctg BOOK: Beginning Cryptography with Java 1 August 10th, 2008 08:19 PM
Problem in Implementing ECDH nay_ctg BOOK: Beginning Cryptography with Java 1 August 3rd, 2008 07:28 PM
Java Code - Wrox - Beginning JAVA - Ivor Horton ponguru Java Databases 3 May 18th, 2006 01:30 PM



All times are GMT -4. The time now is 07:45 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc