8 [ "x${SALT}" = "x" ] && die "you must set SALT to the salt."
9 [ "x${PASS}" = "x" ] && die "you must set PASS to the password"
13 if [[ "${FILE}" = *.nc ]]; then
14 echo "Not encrypting ${FILE} because its name already ends in .nc"
17 if [ -e "${NEW_FILE}" ]; then
18 echo "Not encrypting ${FILE} because there is already a ${NEW_FILE}"
20 if openssl enc -aes-256-ecb \
22 -k "${PASS}" < "${FILE}" > "${NEW_FILE}"; then
23 echo "Created ${NEW_FILE}"
25 echo "Failed to create ${NEW_FILE}"