Unless I'm mistaken, it says somewhere in the movie, or maybe it's in a deleted scene, that all of humans electronics and software were reversed engineered from that one spacecraft they're hiding at area 51 and that's the why it works. 