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 January 18th, 2007, 05:54 AM
Registered User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default RSA Decryption - Chapter 4

Hi!

I am testing the "Basic RSA" example in page-87 of Chapter 4. When I run the example I've got the same cipherText that is showed in the book, however the plain text after the decryption step is totally different.

Book:
   input: beef
   Cipher: d2db15838f6c1c98702c5d54fe0add42
   plain: beef

My run:
   input: beef
   Cipher: d2db15838f6c1c98702c5d54fe0add42
   plain: 984569fd87584ea0af29264bd3252c15

I'm running JDK 6.0, and I'm installing the Bouncy Castle provider during execution:

  import org.bouncycastle.jce.provider.BouncyCastleProvider ;
  Security.addProvider(new BouncyCastleProvider());

Thank you very much.




 
Old January 18th, 2007, 07:15 AM
Registered User
 
Join Date: Jan 2007
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've solved the problem.

Thanks.

 
Old January 22nd, 2007, 08:59 PM
Authorized User
 
Join Date: Jan 2007
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

What was the problem?






Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrapping RSA Keys rayback_2 BOOK: Beginning Cryptography with Java 3 April 28th, 2008 04:29 PM
Problem With RSA Interface Floetic Java GUI 1 March 25th, 2008 06:14 AM
Using Java To Implement RSA Algorithm Floetic Java Basics 2 March 24th, 2008 12:07 PM
Bad data when decrypting using RSA scotthcw ASP.NET 2.0 Basics 0 December 8th, 2006 11:10 PM
RSA ajm235 C++ Programming 1 August 19th, 2004 01:41 PM





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