This repository contains two Python scripts that demonstrate how MACsec encryption/decryption work. It was originally a part of a larger demonstration on how MACsec works on Linux.
To run either script, you need to create a new virtual environment and install
the packages listed in the requirements.txt file.
$ python -m venv .venv
$ source .venv/bin/activate
$ pip install -r requirements.txt
$ python macsec.py
The macsec_manual.py script is meant to be read directly to see how the
process works. The macsec.py script is an expansion of the first to allow for
an entire PCAP file to be decrypted with provided AES keys.