encode/2">
  <div class="detail-header">
    <a href="#encode/2" class="detail-link" title="Link to this function">
      <i class="icon-link"></i>
    </a>
    <span class="signature">encode(int, digits \\ 1)</span>
      
  </div>
  
  <section class="docstring">
    <p>Returns a hex encoded string from a char-list, string or integer.</p>
<h2>Examples</h2>
<pre><code class="iex elixir">iex&gt; Hexate.encode(&quot;This is a test.&quot;)
&quot;54686973206973206120746573742e&quot;

iex&gt; Hexate.encode(&#39