HELP! Can't Extract tar.gz auto-Backups

I created a a simple shell script which uses gzip, tar, and openssl to decrypt backups. See Hassio-tar.sh - Decrypt Home Assistant backups with near-zero dependencies required

Edit: I added a section to my post explaining how encrypted backups work because the original poster asked the question.