For a long time, there has been a need for a practical, down-to-earth developers book for the Java Cryptography Extension. I am very happy to see there is now a book that can answer many of the technical questions that developers, managers, and researchers have about such a critical topic. I am sure that this book will contribute greatly to the success of securing Java applications and deployments for e-business. --Anthony Nadalin, Java Security Lead Architect, IBMFor many Java developers and software engineers, cryptography is an "on-demand" programming exercise, where cryptographic concepts are shelved until the next project requires renewed focus. But considerations for cryptography must be made early on in the design process and it's imperative that developers know what kinds of solutions exist. One of Java's solutions to help bridge the gap between academic research and real-world problem solving comes in the form of a well-defined architecture for implementing cryptographic solutions. However, to use the architecture and its extensions, it is important to recognize the pros and cons of different cryptographic algorithms and to know how to implement various devices like key agreements, digital signatures, and message digests, to name a few. In Java Cryptography Extensions (JCE), cryptography is discussed at the level that developers need to know to work with the JCE and with their own applications but that doesn't overwhelm by packing in details unimportant to the busy professional. The JCE is explored using numerous code examples and instructional detail, with clearly presented sections on each aspect of the Java library. An online open-source cryptography toolkit and the code for all of the examples further reinforces the concepts covered within the book. No other resource presents so concisely or effectively the exact material needed to begin utilizing the JCE.
- Written by a seasoned veteran of both cryptography and server-side programming
- Covers the architecture of the JCE, symmetric ciphers, asymmetric ciphers, message digests, message authentication codes, digital signatures, and managing keys and certificates
Inhaltsverzeichnis
1;Front Cover;1 2;Java Cryptography Extensions: Practical Guide for Programmers;4 3;Copyright Page;5 4;Contents;8 5;Preface;12 6;Chapter 1. Understanding Java's Cryptographic Architecture;18 6.1;1.1 Java and Cryptography;20 6.2;1.2 Java Cryptography Architecture;21 6.3;1.3 Java Cryptography Extension (JCE);24 6.4;1.4 Understanding the Service Provider Interface Architecture;25 6.5;1.5 Installing Providers;26 6.6;1.6 JCA Helper Classes ;30 6.7;1.7 Working with Jurisdiction Policy Files;44 7;Chapter 2. Working with Symmetric Ciphers;46 7.1;2.1 Random Number Generation;47 7.2;2.2 The SecureRandom Engine;48 7.3;2.3 The KeyGenerator Engine;50 7.4;2.4 Avoiding Opaque Keys;53 7.5;2.5 Categorizing Symmetric Ciphers;57 7.6;2.6 Padding and Cipher Modes;59 7.7;2.7 The Cipher Engine;63 7.8;2.8 Password Based Encryption;76 7.9;2.9 Bringing Order to Chaos: Picking a Cipher;81 8;Chapter 3. Working with Asymmetric Ciphers and Key Agreement Protocols;84 8.1;3.1 The KeyPairGenerator Engine;86 8.2;3.2 Revisiting the Cipher Engine;95 8.3;3.3 Comparing Keys for Equality;101 8.4;3.4 Looking to the Future: Elliptic Curve Cryptography;101 8.5;3.5 The KeyAgreement Engine;102 9;Chapter 4. Message Digests, Message Authentication Codes, and Digital Signatures;118 9.1;4.1 Choosing a Message Digest Algorithm;119 9.2;4.2 The MessageDigest Engine;120 9.3;4.3 The Mac Engine;124 9.4;4.4 Digital Signatures;128 9.5;4.5 The Signature Engine;130 10;Chapter 5. Managing Keys and Certificates;136 10.1;5.1 The Need for Key Management;136 10.2;5.2 Digital Certificates Defined;137 10.3;5.3 The KeyStore Engine;138 10.4;5.4 The CertificateFactory Engine;149 10.5;5.5 Conclusion;167 11;Bibliography;170 12;Index;172