Beginning Cryptography with Java

Предна корица
John Wiley & Sons, 19.08.2005 г. - 480 страници
Beginning Cryptography with Java

While cryptography can still be a controversial topic in the programming community, Java has weathered that storm and provides a rich set of APIs that allow you, the developer, to effectively include cryptography in applications-if you know how.

This book teaches you how. Chapters one through five cover the architecture of the JCE and JCA, symmetric and asymmetric key encryption in Java, message authentication codes, and how to create Java implementations with the API provided by the Bouncy Castle ASN.1 packages, all with plenty of examples. Building on that foundation, the second half of the book takes you into higher-level topics, enabling you to create and implement secure Java applications and make use of standard protocols such as CMS, SSL, and S/MIME.

What you will learn from this book

  • How to understand and use JCE, JCA, and the JSSE for encryption and authentication
  • The ways in which padding mechanisms work in ciphers and how to spot and fix typical errors
  • An understanding of how authentication mechanisms are implemented in Java and why they are used
  • Methods for describing cryptographic objects with ASN.1
  • How to create certificate revocation lists and use the Online Certificate Status Protocol (OCSP)
  • Real-world Web solutions using Bouncy Castle APIs

Who this book is for

This book is for Java developers who want to use cryptography in their applications or to understand how cryptography is being used in Java applications. Knowledge of the Java language is necessary, but you need not be familiar with any of the APIs discussed.

Wrox Beginning guides are crafted to make learning programming languages and technologies easier than you think, providing a structured, tutorial format that will guide you through all the techniques involved.

 

Съдържание

The JCA and the JCE
1
Symmetric Key Cryptography
15
Symmetric Block Cipher Modes
24
Symmetric Stream Ciphers
39
Key Wrapping
50
Message Digests MACs and HMACs
57
Asymmetric Key Cryptography
83
RSAPrivateKeySpec and RSAPrivateKey
89
KeyStore Nested Classes and Interfaces
286
The PKCS 12 Format
298
The Keytool
304
Jarsigning and Java Policy
312
The Version Field
325
CMS EnvelopedData ASN 1 Structure
332
The RecipientInformationStore Class
336
SecureMultipurpose Internet Mail Extensions SMIME The CMSProcessableBodyPart Class
348

Object Description in Cryptography Using ASN 1
135
Basic ASN 1 Syntax
136
Encoding Rules
150
Some Real Examples
164
Summary
181
Distinguished Names and Certificates
183
X509Certificate getNotBefore and X509Certificate getNotAfter
191
X509Certificate getKeyUsage X509Certificate getSubjectAlternativeNames X509Certificate getIssuerAlternativeNames X509Certificate getBasicConst...
204
Certificate Revocation and Path Validation
227
X509CRLSelector setMaxCRL and X509CRLSelector setMinCRL Online Certificate Status Protocol
248
Key and Certificate Management Using Keystores
281
SMIMESigned getContentWithSignature SMIME Enveloped Messages
354
SMIME Compressed Messages
361
SSL and
365
Managing SSL Session Information
389
Summary
401
Exercises
403
Algorithms Provided by the Bouncy Castle Provider
417
Bibliography and Further Reading
425
Index
431
370
446
Авторско право

Други издания - Преглед на всички

Често срещани думи и фрази

Информация за автора (2005)

David Hook has been writing software in a variety of domains and languages for the last 20 years. He has worked with Java since 1995, originally doing medical imaging before moving into cryptography and security a year or so later. In April 2000, he co-founded the open source Bouncy Castle cryptography project and has played an active role in it ever since. He currently works as a freelance consultant, mainly in Java, doing the odd bit of lecturing and writing on the side. When he is not using his spare time to work on Bouncy Castle, he spends it pursuing his other interest in computer graphics. He lives in Melbourne, Australia, with his most patient wife Janine and a cat named Hamlet, who really seems to think he’s a little cryptographer in a fur coat. David can be reached at dgh@bund.com.au.

Библиография