Manages the encoding of credentials for the PLAIN authentication mechanism.
Encodes credentials for the given username and password. This involves sending the password across the wire in plaintext, so PLAIN authentication should only be used over a secure transport layer.
@param [String] username The username to encode. @param [String] password The password to encode. @return [String] The username and password, encoded for the PLAIN
mechanism.
# File lib/amqp/auth_mechanism_adapter/plain.rb, line 19 def encode_credentials(username, password) "\00##{username}\00##{password}" end