< Return to Blog

HOWTO create a bash script to use VeraCrypt

In this video on my new channel I walk you through the process of putting together a simple bash script to use the VeraCrypt CLI to quickly generate an encrypted container. In a later fix (off screen), I also ensured that the password is not leaked to STDOUT's history with some shell redirection
echo "" printf '%s\n' \ 'WRITE THIS DOWN IN A SECURE PLACE WITH A CRAYON' "$1" \ 'Hide it in a dark hole, darker the better!' 1>&2 echo "" do_log "INFO VeraCrypt file ${VERACRYPT_FILE} mounted at /Volumes/${VERACRYPT_MOUNT_PATH}" # vim: ts=4:sw=4:sts=4:noet:ft=sh
Please do comment on whether you found this useful and I hope to make this public, during the coming week.