Social Security

I plan to take a short-term (3-5 years) consulting job in Brazil and would like to continue to contribute to my SS&Medicare. The company has no affiliation with any U.S. entity. How can I report my income and continue to grow my SS credits? Can someone please advise how to go about this?