How to install encrypted Debian on an M1 MacBook Pro

In this post I’ll describe how to install an encrypted Debian (13, “Trixie”) on an M1 MacBook Pro (others might work too).