title: R digest::digest() does not return expected hashes
body: <p>I am trying out R's digest package. I am using multiple functions (digest(..., algo = ...), sha1(), sha1_digest()) but none of them return the same hash values that I check via online hash generators. The hash generators are consistent &quot;among themselves&quot;, so I think I am not doing something properly, but I am unsure.</p>
  <p>For instance:
  My R (and <a href="https://rdrr.io/rforge/digest/" rel="nofollow noreferrer">https://rdrr.io/rforge/digest/</a>) return this:</p>
  <pre><code>&gt; digest::digest(&quot;aaa&quot;, algo =  &quot;crc32&quot;)
  [1] &quot;acdd051e&quot;
  </code></pre>
  <p>whereas
  <a href="https://crc32.online/" rel="nofollow noreferrer">https://crc32.online/</a> gives for the same</p>
  <pre><code>&quot;aaa&quot;
  f007732d
  </code></pre>
  <p>The discrepancies persist with sha1 and md5.
  I tried to google the issue but no relevant hits are displayed for &quot;R digest does not match&quot;...</p>