Cheap, and really quite nasty

Electronics engineer Ken Shirriff offers a discussion and explanations for the iPad charger and the counterfeits here. Similar considerations apply to the MacBook chargers.
Ever wondered how a Magsafe connector works? look here.