Pyshark supports automatic decryption of traces using WEP, WPA-PWD, and WPA-PSK standards.
Usage:
Pass the decryption_key and encryption_type to the capture constructor.
Supported Encryption Standards:
Available via pyshark.FileCapture.SUPPORTED_ENCRYPTION_STANDARDS or pyshark.LiveCapture.SUPPORTED_ENCRYPTION_STANDARDS.
Values: ('wep', 'wpa-pwd', 'wpa-psk').
import pyshark
# Decrypting a file
cap1 = pyshark.FileCapture('/tmp/capture1.cap', decryption_key='password')
# Decrypting live traffic
cap2 = pyshark.LiveCapture(interface='wi0', decryption_key='password', encryption_type='wpa-psk')