d="id-1.11.7.38.8.8.2" class="indexterm"></a><pre class="synopsis">
gen_salt(type text [, iter_count integer ]) returns text
</pre><p>
    Generates a new random salt string for use in <code class="function">crypt()</code>.
    The salt string also tells <code class="function">crypt()</code> which algorithm to use.
   </p><p>
    The <em class="parameter"><code>type</code></em> parameter specifies the hashing algorithm.
    The accepted types are: <code class="literal">des</code>, <code class="literal">xdes