Added quotes around all variables that don't explicitly need to be unquoted in cryptapi.sh