blob: e1ea15f6cc181f76a289d40e2b31710e8fa32249 [file] [edit]
STRING:HASH
-----------
.. versionadded:: 4.3
.. |genex-family| replace::
:ref:`genex-family-string-transforming-generator-expressions`
.. include:: ../manual/include/GENEX_FAMILY.rst
.. code-block:: cmake
$<STRING:HASH,string,ALGORITHM:algorithm>
Compute a cryptographic hash of the ``string``. The supported algorithm names,
as specified by the ``ALGORITHM:`` option are:
``MD5``
Message-Digest Algorithm 5, RFC 1321.
``SHA1``
US Secure Hash Algorithm 1, RFC 3174.
``SHA224``
US Secure Hash Algorithms, RFC 4634.
``SHA256``
US Secure Hash Algorithms, RFC 4634.
``SHA384``
US Secure Hash Algorithms, RFC 4634.
``SHA512``
US Secure Hash Algorithms, RFC 4634.
``SHA3_224``
Keccak SHA-3.
``SHA3_256``
Keccak SHA-3.
``SHA3_384``
Keccak SHA-3.
``SHA3_512``
Keccak SHA-3.