Encrypt image to upgrade dir819 router over web interface. Tested on ubuntu 20.04
Add source file to folder as firmware.bin and run
./pack.sh
it'l output the encrypted firmware as firmware_crypt.bin