def encode(self, key):
return "<STR_LIT>" % key<EOL>
Encodes a user key into a particular format. The result of this method
        will be used by swauth for storing user credentials.

        :param key: User's secret key
        :returns: A string representing user credentials