Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Java > Other Java > BOOK: Beginning Cryptography with Java
Password Reminder
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 Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old April 8th, 2011, 10:48 AM
Authorized User
Points: 62, Level: 1
Points: 62, Level: 1 Points: 62, Level: 1 Points: 62, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2006
Location: , , .
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default Cryptography and Android

I started to port a light version of my Encryption application, DocuArmor, from the Windows 7 platform to the Android platform (minimum API 7). I've been able to load an existing PKCS12 keystore, encrypt and decrypt files on their emulator for API level 7 and above. I'm trying to determine if it's capable of allowing the creation of a keystore and it seems to fail on the creation of a certificate. It appears there are classes missing in their Java support. I receive an exception during the initialization of the BCStyle class or the PKCSObjectIdentifiers class with a java.lang.NoSuchFieldError. Is there any document that states what level of Bouncy Castle (BC) libraries are compatible with Android? I'm currently using BC ver 1.46. It appears that even though Android offers BC as a provider, it trimmed off some of the functions such as Certificate generation and manipulation. Is there any information on what functions are available under Android? Thanks.
Reply With Quote
  #2 (permalink)  
Old April 11th, 2011, 06:34 PM
dgh dgh is offline
Wrox Author
Points: 864, Level: 11
Points: 864, Level: 11 Points: 864, Level: 11 Points: 864, Level: 11
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2005
Location: , , .
Posts: 206
Thanks: 0
Thanked 20 Times in 20 Posts
Default

Sorry, no idea on this one. I have heard that Android has recently updated to 1.45 so I can imagine there would be issues with 1.46. This is really a question best asked to someone at Google.

Regards,

David
Reply With Quote
  #3 (permalink)  
Old April 12th, 2011, 09:10 PM
Authorized User
Points: 62, Level: 1
Points: 62, Level: 1 Points: 62, Level: 1 Points: 62, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Feb 2006
Location: , , .
Posts: 13
Thanks: 1
Thanked 0 Times in 0 Posts
Default

David,
I've browsed the threads on Google and unfortunately, they don't offer alot of details.

However, I was able to access the BouncyCastle provider under the emulator and execute the getInfo() method to print out the version. The results were Android ver 2.2 (API level 8) and below use BouncyCastle library 1.34. Android 2.3.1 (API Level 9) and above use BouncyCastle library 1.45.

I downgraded our DocuArmor suite from BouncyCastle ver 1.46 to 1.45 in order to be compatible with our phone application. Thanks for the tip about BC 1.45 being on one of the Android versions.

Jim
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Android SDK/Android.bat does not find SWT.jar file chaoticandroid BOOK: Professional Android 2 Application Development 1 March 23rd, 2011 06:39 PM
encryption using private key is possible in Elliptic curve cryptography nivsri BOOK: Beginning Cryptography with Java 2 December 28th, 2010 08:14 AM
i am new to android janardhan BOOK: Professional Android Application Development ISBN: 978-0-470-34471-2 2 July 29th, 2010 03:37 PM
[Cryptography]Challenges with Large integer using C/C++ phuc_tran C++ Programming 0 April 7th, 2010 11:10 PM
Cryptography project mannuvashishta .NET Framework 1.x 0 January 10th, 2007 06:49 PM



All times are GMT -4. The time now is 05:42 AM.


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