Script to password protect a TWRP recovery image
Usage:
[Linux] ./protect.py <recovery.img>
[Windows] python protect.py <recovery.img>
Python3 is required.
Tested on Linux and Windows.
Please report any issues you might find.
TeamWin for TWRP: https://twrp.me/
osm0sis from Android Image Kitchen: https://forum.xda-developers.com/showthread.php?t=2073775