This is the SMTP settings I use in my app and i have no idea how to hide(encrypt) the password which is presented in this settings.
ActionMailer::Base.smtp_settings = {
:tls =>true,
:enable_starttls_auto =>true,
:address => "smtp.gmail.com",
:domain => "gmail.com",
:user_name => "somename",
#:password => "somepassword",
:port => 587,
:authentication => :plain
}