The simplest mechanisms simply transmits the username and password without
adding any encryption or hashing. As such it's more insecure than
DH-BLOWFISH and should only be used in combination with SSL.
Public Class Methods
generate(user, password, _ = nil)click to toggle source
@param [String] user @param [String] password @return [String]
# File lib/cinch/sasl/plain.rb, line 20defgenerate(user, password, _ = nil)
Base64.strict_encode64([user, user, password].join("\00""))
end
mechanism_name()click to toggle source
@return [String]
# File lib/cinch/sasl/plain.rb, line 13defmechanism_name"PLAIN"end