How can I attach a crank like this to a motor like this?

Looks like maybe hot glue.