Generating EC Public-Private Keys

This chapter provides tutorial notes on generating EC (Elliptic Curve) keys with Python scripts. Topics covered include using the cryptography and PyCryptodome libraries to generate EC private-public key pairs; selecting different elliptic curves; exporting and importing EC keys.

"cryptography.hazmat.primitives.asymmetric.ec" - Generate EC Keys

"serialization.load_pem_private_key()" - Load EC Private Key

"Crypto.PublicKey.ECC" - Generate EC Keys

Takeaways:

Table of Contents

 About This Book

 Running Python Code Online

 Python on macOS Computers

 Python on Linux Computers

 Built-in Data Types

 Variables, Operations and Expressions

 Statements - Execution Units

 Function Statement and Function Call

 Iterators and Generators

 List, Set and Dictionary Comprehensions

 Classes and Instances

 Modules and Module Files

 Packages and Package Directories

 "sys" and "os" Modules

 "pathlib" - Object-Oriented Filesystem Paths

 "pip" - Package Installer for Python

 SciPy.org - Python Libraries for Science

 pandas - Data Analysis and Manipulation

 Communicating with HTTPS Servers

 tinyec - Tiny Library for ECC

Generating EC Public-Private Keys

 Anaconda - Python Environment Manager

 Jupyter Notebook and JupyterLab

 References

 Full Version in PDF/EPUB