Wrox Programmer Forums
|
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 Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 6th, 2009, 07:35 AM
Registered User
 
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 ([email protected]).I am very much in need of the code please help me out......
regards
krishna
 
Old October 6th, 2009, 07:43 AM
Registered User
 
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 ([email protected]).I am very much in need of the code please help me out......
regards
krishna
 
Old October 6th, 2009, 05:51 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
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
 
Old October 13th, 2009, 01:08 AM
Registered User
 
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
 
Old October 13th, 2009, 02:07 AM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
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
 
Old October 21st, 2009, 01:55 AM
Registered User
 
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
 
Old December 7th, 2011, 02:11 AM
Registered User
 
Join Date: Dec 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default ECDH Code

You got the code for ECDH. So please help me. I need the same for my project. Please mail me the code ([email protected]). Please help me, its very urgent.
 
Old December 7th, 2011, 07:25 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Code for the BC libraries is available for download at http://www.bouncycastle.org/latest_releases.html

Regards,

David
 
Old December 8th, 2011, 10:26 AM
Registered User
 
Join Date: Dec 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry sir but I am not getting anything from their. Will you please give me the code if you have it
 
Old December 10th, 2011, 11:04 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

The distributions are also available for anonymous ftp at ftp.bouncycastle.org Note the server does not support passive mode ftp.

Sorry, but I do not have the facilities to send the code via email.

Regards,

David





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 01: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 07:19 PM
Problem in Implementing ECDH nay_ctg BOOK: Beginning Cryptography with Java 1 August 3rd, 2008 06:28 PM
Java Code - Wrox - Beginning JAVA - Ivor Horton ponguru Java Databases 3 May 18th, 2006 12:30 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.