Is there any way to encrypt the Http basic authentication password in rails?
<p>I have written the following in my controller:</p>

<pre><code>http_basic_authenticate_with name: "foo", password: "bar", except: [:new, :show, :edit, :create]
</code></pre>

<p>but when I push it to my repo, the password is there for everyone to see. Is there any way to encrypt the password? </p>