Opciones binarias son legitimate
In very low-cost or miniature encoders, sometimes adhesive secures bearings to the shaft hub, though vibration can cause failure here. More commonly, the encoder shaft couples to the motor shaft with a belt, gear train, or coupling. For the latter, perfect alignment of encoder and driving shaft centers of rotation is impossible, so flexible couplings are often used.
Manufacturers offer detailed guidelines on proper mounting.