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 April 24th, 2007, 10:26 AM
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Encrypting using a secret key

Hi,
I am currently trying to write a program in Java using ECC. I have created a secret key which is shared between two clients. I am now trying to encrypt/decrypt a message using this secret key. I was going to use ECIES, however it only recognises the public and private keys (not the secret key). Does anyone have any ideas how i can encrypt/decrypt a message?

Thanks in advance


 
Old April 24th, 2007, 09:31 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

I think you might have your wires crossed a bit, EC is an asymmetric algorithm, not a symmetric one. You might want to have another look at Chapter 4. It shows various uses of EC plus examples.

Regards,

David

 
Old April 27th, 2007, 07:48 AM
Registered User
 
Join Date: Apr 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

After reading your comment I did a bit more research on the topic, and found that you can combine an asymmetric algorithm, like ECC, with a symmetric algorithm, like AES. So what I want to do is use the ECC secret key with the AES encryption, however I can not figure out how to do this. Does anyone know how to change the format of the ECC Secret key so that it can be use with AES?
Thanks again


 
Old April 27th, 2007, 06:01 PM
dgh dgh is offline
Wrox Author
 
Join Date: Aug 2005
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Combining symmetric key usage with ECC requires the use of Key Agreement. This is covered in Chapter 4, on pages 110 to 112, which shows a basic agreement strategy. If you need a strategy that requires reuse of the EC keys you need to look at methods based on X9.63.

Regards,

David






Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypting config vikingsunil ASP.NET 2.0 Professional 1 August 28th, 2008 10:53 PM
Encrypting Data harpua Pro PHP 3 June 4th, 2005 01:15 AM
Encrypting and Decrypting chipset VB How-To 0 July 27th, 2004 07:36 AM
querystring encrypting invitro Classic ASP Professional 1 April 5th, 2004 10:45 AM
What's the secret? Adam H-W Flash (all versions) 2 March 24th, 2004 01:54 PM





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