Help Programming a Motor

Hello,
I am considering buying this motor

https://www.robotshop.com/en/lynxmotion-12v-90-rpm-9911oz-in-1269-brushed-dc-gear-motor-w--encoder.html#productsReviewBoxTitle

Before I buy it I want to make sure I will be able to program it and also the encoder that comes with it. The encoder sheet is unfortunately in another language, but I feel the amount that is in english is enough for someone experienced with this type of thing to be able to figure it out. Basically what is the function of each of the five wires? I understand the ones labelled 1-4, but I don't know how wires 5 and 6 work.

Edit: I'm going to go with this motor due to price:

same problem though.

Thank you all very much.

5 & 6 are your encoder output signal (arduino inputs), in quadrature, so you can figure out what direction the motor is turning and how many steps and all that.
Then just the voltage to the motor 1 &2, hall ground and Vcc.

How are you planning to power and control the motor (12V, unknown Amps)?

Before I buy it I want to make sure I will be able to program it

No, you won't. It does not have anything that can be programmed.

Thank you everyone for the replies! noweare said everything I needed to know. Thanks again; this community is awesome.