module Net::IMAP::SASL::ProtocolAdapters::Generic

def encode(string) [string].pack("m0") end

The generic implementation returns the Base64 encoding of +string+.

Encodes a client response string.
def encode(string)    [string].pack("m0") end