Twitter on Friday became the latest tech giant to beef up encryption in response to disclosures about government eavesdroppers scooping up Web traffic.