title: How to create a non-random salt from string for bcrypt.hashpw
body: <p>First off I read this question and understand one should not use non-random salts, but for this case I will need to:<a href="https://stackoverflow.com/questions/8869367/how-can-i-set-salt-for-bcrypt-hashpw">How can I set salt for bcrypt.hashpw?</a></p>
  
  <p>My code:</p>
  
  <pre><code>import bcrypt
  
  password = "pass"
  
  hashed = bcrypt.hashpw( password, "a0a4310f19")
  
  print hashed
  </code></pre>
  
  <p>I get error:  </p>
  
  <pre><code>ValueError: Invalid salt
  </code></pre>
  
  <p>How can I convert this string to an accepted salt class? Thank you!</p>