While in France, Jefferson became a regular companion of the Marquis de Lafayette, a French hero of the American Revolutionary War, and Jefferson used his influence to procure trade agreements with France. As the French Revolution began, Jefferson allowed his Paris residence, the Hôtel de Langeac, to be used for meetings by Lafayette and other republicans. He was in Paris during the storming of the Bastille and consulted with Lafayette while the latter drafted the Declaration of the Rights of Man and of the Citizen. Jefferson often found his mail opened by postmasters, so he invented his own enciphering device, the "Wheel Cipher"; he wrote important communications in code for the rest of his career. Jefferson left Paris for America in September 1789, intending to return soon; however, President George Washington appointed him the country's first Secretary of State, forcing him to remain in the nation's capital. Jefferson remained a firm supporter of the French Revolution while opposing its more violent elements.