Well, in the grand scheme of things, exposing Twitter credentials is far more trivial than some cracker snagging my banking login.
But yeah, in general, I certainly agree -- when possible -- avoid the liability.
Unfortunately I'm working on something that requires a non-interactive post to Twitter, so storing credentials is unavoidable.
As far as cleartext ... you can encrypt at rest ... and if you're using https to hit Twitter, you're fine there ... and SSL on the way in certainly helps ... but still, I'd rather just not have to store a password ... API key/OAuth anyone?
"Can we lookup current username based on User ID values?"
Returns extended information of a given user, specified by ID or screen name as per the required id parameter below. This information includes design settings, so third party developers can theme their widgets according to a given user's preferences. You must be properly authenticated to request the page of a protected user.
URL: http://twitter.com/users/show/id.format
Formats: xml, json
Parameters: