This 6 inch cable is designed to convert older DIN5 (AT)-style keyboards to the newer PS/2 connection. Just plug the male PS2 end into the appropriate port on your computer, and plug your DIN5 keyboard into that. You can now use your older keyboard on your newer computer.
Pinouts: