The cable that i have attached in the pictures below need to be replaced. I don't know the names(types) of the two connectors so i need your help.
The device i need to connect:
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It only takes a minute to sign up.Sign up to join this community
It's maybe late for you, but could be helpful for others. Latched/keyed/buckled/secured etc... are to vague. Funny when I googled images with MOLEX 2520 I got plenty of results especially for this connector.But that probably is more coincidence.
If you will google "SL Crimp Housing, Single Row, Version G, Positive Latch, 4 Circuits" you will get to molex website. Exact part number it's Molex 70066G (the G version is the polarity keyed + latch/buckle).
The "Positive Latch" is term used by molex. You can see this connector and few similar in this catalog (search inside the PDF for 70066G):
On page 3 it's on the bottom of the illustration. I'm going into these extends to describe it, because if you will use Latched dupont. Somewhere they dupont is not metioned, just the 2.54 female connector etc... But this way you should be able to find more stores having this (maybe just under different name).