title: Generating salts with a constant in rails
body: <p>So I'm relatively new to encryption, and stackoverflow, so please tell me if I'm going about this wrong.</p>
  
  <p>Bcrypt by default uses randomly generated salts in the digest to stop rainbow table attacks. These salts are stored in the database in the password digest.
  Wouldn't it be more secure to have a constant stored only in code that you would add to the randomly generated salts. This, in theory, would require attackers to have both your database and your code to test passwords. I'd assume it would be built into bcrypt if there wasn't some flaw in my thinking, so where's the error in my idea?</p>