Giter VIP home page Giter VIP logo

practical-cryptography-in-python's Introduction

Apress Source Code

This repository accompanies Cryptography in Python Source Code by Seth Nielson and Christopher K. Monson (Apress, 2019).

Cover image

Download the files as a zip using the green button, or clone the repository to your machine using Git.

Releases

Release v1.0 corresponds to the code in the published book, without corrections or updates.

Contributions

See the file Contributing.md for more information on how you can contribute to this repository.

Listing Types

There are two types of listings in the book. The first is typical Python code meant to be executed as a Python script. These can be executed directly from the command line with the appropriate configuration as described in Chapter 1.

The other files are representations of Python commands executed in a Python interactive shell. We have included these snippets in files ending with ".pyprompt". Obviously, these cannot be run from the command line but you can copy each individual command into a shell if you would like to re-create the output.

Differences from Listings

The source code herein is not a perfect one-to-one match to source code listings in the book. For one thing, some book listings were shortened or simplified for space constraints or clarity. In other cases, multiple listings within the book are taken from a single file. Occasionally, there is a very small change to the actual code for similar reasons.

Most of the included Python programs also include a simple main function that performs a simplistic sanity check to test that the code is working correctly. It would have been better to use Python's unittest framework but there were a couple of reasons this solution wasn't the default. Most of these programs, if run, will output either "[PASS]" (if everything worked correctly) or "[FAIL]" otherwise. For some, there is an explicit "--auto-tester" value checked at the command line that can be safely ignored.

Prerequisites

While most of the included examples are completely self-contained, there are a few that must be run together or require some special inputs. These prerequisites are listed in the book. If something doesn't seem to work right, make sure that you are following the instructions.

practical-cryptography-in-python's People

Contributors

noahabe avatar sethnielson avatar spak9 avatar tom-ohare avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

practical-cryptography-in-python's Issues

Error on page 201

The following paragraph:

The function creates a dictionary and loads three fields: a subject name (identity),
an issuer name, and a public key. Note that there are (parts of) two key pairs being used
in this file. There is an issuer private key and the subject public key. It is the subject’s
private key that is being stored in the certificate. This public key in many ways represents
the subject as it will be used to prove his or her identity. That is why it is so important
that the certificate be signed.10 Otherwise, anyone could create a certificate to claim any
identity they like.

I believe you mean to say "It is the subject's public key that is being stored in the certificate", rather than "private key"?
I'm probably wrong!

Excellent Book Practical Cryptography in Python

I bought your Excellent Book Practical Cryptography in Python
in the United States on Amazon.com.

I have downloaded Python source code files from Github.

However, by looking at the file name, we can't find which page # or chapter # in the book, a specific file is explained in.

By looking at a Listing in your book, we can't find which Python file name the listing is talking about.

Can you please help by providing a mapping table (small text file)?

  1. For each Listing # in your book, corresponding python file name
  2. For each file name corresponding Listing #

Thanks and best regards,
SSJ

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.