title: Storing crypto/rand generated string issues
body: <p>So I have the following <a href="https://gist.github.com/ymg/0c6e5680aabca60871db" rel="nofollow noreferrer"><strong>go file(s)</strong></a> as part of my project to be used for hashing passwords, I also wrote some tests that to my knowledge have yet to fail.</p>
  
  <p>Currently the issue is that I am trying to store the password and salt in some database as strings, and every time I retrieve them to be compared against a another string I keep getting the message in the picture from golang's bcrypt package. The tests I wrote are running fine and produce the appropriate effect. I would have supplied a go playground link but bcrypt package is part of the standard library.</p>
  
  <p>I know the gibberish from <code>crypto/rand</code> is pretty much the same from the initial look but I am not sure if there is anything being changed on the database. I am using redis fyi.</p>
  
  <p><strong>Edit</strong>: based on the request of @3of3, I am including the <a href="https://gist.github.com/ymg/bf360ef0ed88fde5e2d6" rel="nofollow noreferrer"><strong>DAO</strong></a> code from my project. Also the bcrypt only solution worked with this code but as I stated in the comments, I am aiming to stick to Mozilla's guide.</p>
  
  <p><img src="https://i.stack.imgur.com/K6rwy.png" alt="enter image description here"></p>