def METHOD_NAME (self, s):
    """Apply MD5 to a string <s>, then wrap it in base64 encoding."""
    m = md5()
    m.update (s)
    d = m.digest()
    # base64.encodestring tacks on an extra linefeed.
    return encodestring (d)[:-1]