Beginning cryptography with Java
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.
What people are saying - Write a review
We haven't found any reviews in the usual places.
Chapter 1 The JCA and the JCE
Symmetric Key Cryptography
Symmetric Block Cipher Modes
28 other sections not shown
Other editions - View all
algorithm AlgorithmParameters args ASN.l structure attribute basic Biglnteger block block cipher Bouncy Castle byte array caCert cert certificate chain certificate path certificate revocation lists certification request CertPath CertStore chapter Cipher object cipher.init(Cipher.DECRYPT_MODE ciphertext constructor contains create cryptography ctLength decryption default defined Diffie-Hellman encoding encryption entry extension field following output getEncoded getlnstance hash HMAC icate implementation input interface issuer Java key size KeyPair KeyPairGenerator KeyStore KeyStore object keytool look message digest method returns method will throw MimeBodyPart mode null OBJECT IDENTIFIER OCSP OCTET STRING OPTIONAL package param parameters password path validation PKCS 12 PKIX plainText policy files private key public class public key public static void random recipient root certificate Running the example S/MIME SecureRandom SEQUENCE server signature signed signed-data specified static void main(String symmetric key throws Exception trust anchor verify X509Certificate