class Cinch::SASL::Plain
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 20 def generate(user, password, _ = nil) Base64.strict_encode64([user, user, password].join("\0")) end
mechanism_name()
click to toggle source
@return [String]
# File lib/cinch/sasl/plain.rb, line 13 def mechanism_name "PLAIN" end