title: How do I store Argon2 passwords in my database?
body: <p>I'm trying to store user passwords in my DB using Argon2 algorithm. </p>
  
  <p>This is what I obtain by using it:</p>
  
  <pre><code><span class="math-container">$echo -n "password" | argon2 "smallsalt" -id -t 4 -m 18 -p 4
  Type:           Argon2id
  Iterations:     4
  Memory:         262144 KiB
  Parallelism:    4
  Hash:           cb4447d91dd62b085a555e13ebcc6f04f4c666388606b2c401ddf803055f54ac
  Encoded:        $</span>argon2id<span class="math-container">$v=19$</span>m=262144,t=4,p=4<span class="math-container">$c21hbGxzYWx0$</span>y0RH2R3WKwhaVV4T68xvBPTGZjiGBrLEAd34AwVfVKw
  1.486 seconds
  Verification ok
  </code></pre>
  
  <p>In this case, <strong>what</strong> should I store in the DB?</p>
  
  <ul>
  <li>The "encoded" value as shown above?</li>
  <li>The "hash" value as shown above?</li>
  <li>Neither, but another solution?</li>
  </ul>
  
  <p>Please, could you help me? I'm a newbie with this and I'm a little bit lost.</p>