Advertisement

Practical Cryptography in Python

Learning Correct Cryptography by Example

  • Seth James Nielson
  • Christopher K. Monson

Table of contents

  1. Front Matter
    Pages i-xv
  2. Seth James Nielson, Christopher K. Monson
    Pages 1-19
  3. Seth James Nielson, Christopher K. Monson
    Pages 21-52
  4. Seth James Nielson, Christopher K. Monson
    Pages 53-110
  5. Seth James Nielson, Christopher K. Monson
    Pages 111-163
  6. Seth James Nielson, Christopher K. Monson
    Pages 165-212
  7. Seth James Nielson, Christopher K. Monson
    Pages 213-248
  8. Seth James Nielson, Christopher K. Monson
    Pages 249-292
  9. Seth James Nielson, Christopher K. Monson
    Pages 293-359
  10. Back Matter
    Pages 361-371

About this book

Introduction

Develop a greater intuition for the proper use of cryptography. This book teaches the basics of writing cryptographic algorithms in Python, demystifies cryptographic internals, and demonstrates common ways cryptography is used incorrectly.

Cryptography is the life blood of the digital world’s security infrastructure. From governments around the world to the average consumer, most communications are protected in some form or another by cryptography. These days, even Google searches are encrypted. Despite its ubiquity, cryptography is easy to misconfigure, misuse, and misunderstand.

Developers building cryptographic operations into their applications are not typically experts in the subject, and may not fully grasp the implication of different algorithms, modes, and other parameters. The concepts in this book are largely taught by example, including incorrect uses of cryptography and how "bad" cryptography can be broken. By digging into the guts of cryptography, you can experience what works, what doesn't, and why.

What You’ll Learn:

  • Understand where cryptography is used, why, and how it gets misused
  • Know what secure hashing is used for and its basic properties
  • Get up to speed on algorithms and modes for block ciphers such as AES, and see how bad configurations break
  • Use message integrity and/or digital signatures to protect messages
  • Utilize modern symmetric ciphers such as AES-GCM and CHACHA
  • Practice the basics of public key cryptography, including ECDSA signatures
  • Discover how RSA encryption can be broken if insecure padding is used
  • Employ TLS connections for secure communications
  • Find out how certificates work and modern improvements such as certificate pinning and certificate transparency (CT) logs

Keywords

Cryptography Python Encryption Authentication Message integrity Hashing Digital signatures TLS Public key cryptography Certificates Security

Authors and affiliations

  • Seth James Nielson
    • 1
  • Christopher K. Monson
    • 2
  1. 1.AustinUSA
  2. 2.HampsteadUSA

Bibliographic information