encrypted notes for bash

NOTES_PATH="$HOME/notes/"
GPG_KEY_ID="C3D7CAFBF442353F95F69F4AA81E075ABEC80A7E"

function take_note() {
        name="${1}"
        if [ -z "${name}" ]; then
                echo "Need a name as first argument"
        fi

        mkdir -p "${NOTES_PATH}"

        while read line; do
                if [[ "${line}" == "EOF" ]]; then
                        return
                fi

                echo "${line}"
        done < /dev/stdin | gpg --encrypt -r "${GPG_KEY_ID}" > "${NOTES_PATH}/${name}"
}

function read_note() {
        name="${1}"
        if [ -z "${name}" ]; then
                echo "Need a name as first argument"
        fi

        cat "$NOTES_PATH/${name}" | gpg --decrypt -q
}