Talking officially, trading accounts in any way, shape, or form, or even giving out login information is against the Code of Conduct. There are thousands of players that basically should be banned, simply for doing this.
However, seeing as how this rule is virtually never enforced, as stated above, you have to risk your information. There is no safe way to trade accounts. I advise highly against it.