title: Hash password in Swift application
body: <p>For security purposes I will encrypt some data, including the user password in my application.</p>
  
  <p>My colleagues have chosen scrypt hashing algorithm, for a 64 bytes length, with a fixed seed, then converted to hex.</p>
  
  <p>Hashing "<strong>A12345678Z</strong>" leads to: <code>25fac84a1cc3a8f6706848d1016cfe7e9d3631691306dcacae68c11c7b54f0bf89e7a7fc51f7fcc19671775acb21c8d928c4c96bb66d915925de58b8b36ab251</code></p>
  
  <p>Seed is “<strong>HeanpyftAkWilfUd</strong>”.</p>
  
  <p>On server, they are using this implementation : <a href="https://github.com/ricmoo/pyscrypt" rel="nofollow">https://github.com/ricmoo/pyscrypt</a></p>
  
  <p>Example:</p>
  
  <pre><code>scrypt.hash(“A12345678Z", “HeanpyftAkWilfUd").encode('hex’)
  </code></pre>
  
  <p>-> </p>
  
  <pre><code>25fac84a1cc3a8f6706848d1016cfe7e9d3631691306dcacae68c11c7b54f0bf89e7a7fc51f7fcc19671775acb21c8d928c4c96bb66d915925de58b8b36ab251
  </code></pre>
  
  <p>My question is how to do that in Swift? What library to use and if it possible - show me sample code, that will lead hashing "<strong>A12345678Z</strong>" to exactly this:</p>
  
  <pre><code>25fac84a1cc3a8f6706848d1016cfe7e9d3631691306dcacae68c11c7b54f0bf89e7a7fc51f7fcc19671775acb21c8d928c4c96bb66d915925de58b8b36ab251
  </code></pre>