<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Rene Windegger</title>
    <description>The latest articles on DEV Community by Rene Windegger (@rwindegger).</description>
    <link>https://dev.to/rwindegger</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3778402%2F0bacaf16-e17b-458a-ac4d-06f03e876e0b.jpeg</url>
      <title>DEV Community: Rene Windegger</title>
      <link>https://dev.to/rwindegger</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/rwindegger"/>
    <language>en</language>
    <item>
      <title>hash23 - A constexpr implementation of different hashing algorithms</title>
      <dc:creator>Rene Windegger</dc:creator>
      <pubDate>Tue, 24 Mar 2026 19:36:54 +0000</pubDate>
      <link>https://dev.to/rwindegger/hash23-a-constexpr-implementation-of-different-hashing-algorithms-3kg7</link>
      <guid>https://dev.to/rwindegger/hash23-a-constexpr-implementation-of-different-hashing-algorithms-3kg7</guid>
      <description>&lt;h2&gt;
  
  
  hash23
&lt;/h2&gt;

&lt;p&gt;I've created a constexpr implementation of different hashing algorithms. The library contains a set of non-cryptographic and cryptographic hash functions.&lt;/p&gt;

&lt;p&gt;Currently the following algorithms are implemented:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CRC32&lt;/li&gt;
&lt;li&gt;FNV-1&lt;/li&gt;
&lt;li&gt;FNV-1a&lt;/li&gt;
&lt;li&gt;MD5&lt;/li&gt;
&lt;li&gt;SHA2-512&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Why it was created
&lt;/h3&gt;

&lt;p&gt;I was looking for a simple way to compute hashes. My first implementation was SHA2-512 because I required a simple API to verify JWT-Tokens in C++23. All implementations I found required a lot of setup and where a pain to use in modern C++.&lt;/p&gt;

&lt;h3&gt;
  
  
  What makes this library different
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;The library is header only.&lt;/li&gt;
&lt;li&gt;It has minimal dependencies.&lt;/li&gt;
&lt;li&gt;It is fully constexpr.&lt;/li&gt;
&lt;li&gt;It has 100% test coverage.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  What is the plan forward
&lt;/h3&gt;

&lt;p&gt;I plan on adding additional hashing algorithms like SHA2-256, SHA3, and Murmur.&lt;/p&gt;

&lt;h3&gt;
  
  
  Where can I find the library
&lt;/h3&gt;

&lt;p&gt;You can go to &lt;a href="https://github.com/rwindegger/hash23" rel="noopener noreferrer"&gt;GitHub&lt;/a&gt; and browse the source code. You can also include it using &lt;a href="https://github.com/cpm-cmake/cpm.cmake" rel="noopener noreferrer"&gt;CPM&lt;/a&gt;. Just use something like below.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight cmake"&gt;&lt;code&gt;&lt;span class="nf"&gt;CPMAddPackage&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
    NAME hash23
    GITHUB_REPOSITORY &lt;span class="s2"&gt;"rwindegger/hash23"&lt;/span&gt;
    GIT_TAG &lt;span class="s2"&gt;"v1.4"&lt;/span&gt;
    VERSION 1.4
    OPTIONS
        &lt;span class="s2"&gt;"BUILD_TESTING OFF"&lt;/span&gt;
    EXCLUDE_FROM_ALL YES
&lt;span class="p"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;I look forward to hear back from you with your questions or suggestions. Also don't hesitate to open a GitHub issue with your feature request or improvement proposal.&lt;/p&gt;

</description>
      <category>cpp</category>
      <category>programming</category>
      <category>opensource</category>
      <category>security</category>
    </item>
  </channel>
</rss>
