\hypertarget{group__digest__functions}{}\doxysection{Digest (Hash) Functions} \label{group__digest__functions}\index{Digest (Hash) Functions@{Digest (Hash) Functions}} Collaboration diagram for Digest (Hash) Functions\+:\nopagebreak \begin{figure}[H] \begin{center} \leavevmode \includegraphics[width=350pt]{group__digest__functions} \end{center} \end{figure} \doxysubsection*{Modules} \begin{DoxyCompactItemize} \item \mbox{\hyperlink{group__hmac__functions}{HMAC Functions}} \end{DoxyCompactItemize} \doxysubsection*{Functions} \begin{DoxyCompactItemize} \item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_gab75d2872586f27999e85b7ed990f6dad}{Qore\+::\+DSS}} (data data) \begin{DoxyCompactList}\small\item\em Returns the DSS message digest (based on SHA-\/0 and \href{http://en.wikipedia.org/wiki/Digital_Signature_Algorithm}{\texttt{ DSA}}) of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_ga418f6b8eb4acc61b72a3a600d418a1b6}{Qore\+::\+DSS1}} (data data) \begin{DoxyCompactList}\small\item\em Returns the DSS1 message digest (based on \href{http://en.wikipedia.org/wiki/SHA-1}{\texttt{ SHA1}} and \href{http://en.wikipedia.org/wiki/Digital_Signature_Algorithm}{\texttt{ DSA}}) of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_gad7149067899176a4910c1aff7f8c3157}{Qore\+::\+DSS1\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the DSS1 message digest (based on SHA-\/0 and \href{http://en.wikipedia.org/wiki/Digital_Signature_Algorithm}{\texttt{ DSA}}) of the supplied argument as a binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_ga20bcfd88e83ae5c08af1d4ef5b6a10c7}{Qore\+::\+DSS\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the DSS message digest (based on SHA-\/0 and \href{http://en.wikipedia.org/wiki/Digital_Signature_Algorithm}{\texttt{ DSA}}) of the supplied argument as a binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_gab21020c23da78956d435a7e99d49b8d0}{Qore\+::\+MD2}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/MD2_(cryptography)}{\texttt{ MD2 message digest}} of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_ga92b9dd3feb62a72720cfad39f79dd3e7}{Qore\+::\+MD2\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/MD2_(cryptography)}{\texttt{ MD2 message digest}} of the supplied argument as binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_ga5657d0e938e652fd42df41aca9e66d94}{Qore\+::\+MD4}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/MD4}{\texttt{ MD4 message digest}} of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_gac2fd96fcd78e96c7d1d3d373f8a921ef}{Qore\+::\+MD4\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/MD4}{\texttt{ MD4 message digest}} of the supplied argument as a binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_ga78c973088de21a5aae0cd8c68fc3447c}{Qore\+::\+MD5}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/MD5}{\texttt{ MD5 message digest}} of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_gafea2cdf61fc831e245ba21f9d8397a23}{Qore\+::\+MD5\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/MD5}{\texttt{ MD5 message digest}} of the supplied argument as a binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_gaa83a12e2e54fe66ace6a9a33392d1dbb}{Qore\+::\+MDC2}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/MDC2}{\texttt{ MDC2 message digest}} of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_ga87e26aea620d34cb4258773e74f61ad6}{Qore\+::\+MDC2\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/MDC2}{\texttt{ MDC2 message digest}} of the supplied argument as a binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_ga39c77370f9b8106e5668e2d6480af148}{Qore\+::\+RIPEMD160}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/RIPEMD}{\texttt{ RIPEMD message digest}} of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_ga588dd676ff78bd5fbc3e18d6b0a328fe}{Qore\+::\+RIPEMD160\+\_\+binary}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/RIPEMD}{\texttt{ RIPEMD message digest}} of the supplied argument as a binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_gadc789f4681257bd18201d49d9d06db82}{Qore\+::\+SHA}} (data data) \begin{DoxyCompactList}\small\item\em Returns the SHA (outdated SHA-\/0) message digest of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_gaa4c0459a185dd677765d7ef073bf32cb}{Qore\+::\+SHA1}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/SHA-1}{\texttt{ SHA1}} message digest of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_ga64b4d9ca4dc8396ad3bf5b6e5fd6ac6b}{Qore\+::\+SHA1\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the \href{http://en.wikipedia.org/wiki/SHA-1}{\texttt{ SHA1}} message digest of the supplied argument as a binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_ga31657accc4ffcdf966506bb07bc9a5f5}{Qore\+::\+SHA224}} (data data) \begin{DoxyCompactList}\small\item\em Returns the SHA-\/224 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_gad78d030a15fd77e92b6acbebf0f01c3b}{Qore\+::\+SHA224\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the SHA-\/224 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_ga2650a6a57142a6c971c583f85c102bef}{Qore\+::\+SHA256}} (data data) \begin{DoxyCompactList}\small\item\em Returns the SHA-\/256 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_ga3e79a4b0a0fcbc536472144fbcb60fd7}{Qore\+::\+SHA256\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the SHA-\/256 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_gad1ac64eef1215b1da8be27c2cd3554d8}{Qore\+::\+SHA384}} (data data) \begin{DoxyCompactList}\small\item\em Returns the SHA-\/384 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_ga46725d7321778042e1acc9fc7e4f0842}{Qore\+::\+SHA384\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the SHA-\/384 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} \mbox{\hyperlink{group__digest__functions_ga6f598af6d5f8eecd18e9b8048ca610b3}{Qore\+::\+SHA512}} (data data) \begin{DoxyCompactList}\small\item\em Returns the SHA-\/512 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a hex string. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_ga14a7dc1fd6565a0ffa61d2dc943ef3e1}{Qore\+::\+SHA512\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the SHA-\/512 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a binary value. \end{DoxyCompactList}\item \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} \mbox{\hyperlink{group__digest__functions_gaca414387b2224d7f22b4ebadec0b419d}{Qore\+::\+SHA\+\_\+bin}} (data data) \begin{DoxyCompactList}\small\item\em Returns the SHA (outdated SHA-\/0) message digest of the supplied argument as a binary value. \end{DoxyCompactList}\end{DoxyCompactItemize} \doxysubsection{Detailed Description} Qore\textquotesingle{}s cryptography support is provided by the Open\+SSL library. A cryptographic hash function is a hash function; that is, an algorithm that takes an arbitrary block of data and returns a fixed-\/size bit string, the (cryptographic) hash value, such that any (accidental or intentional) change to the data will (with very high probability) change the hash value. The data to be encoded are often called the \char`\"{}message,\char`\"{} and the hash value is sometimes called the message digest or simply digest. For more info\+: \href{http://en.wikipedia.org/wiki/Cryptographic_hash_function}{\texttt{ Wikipedia\textquotesingle{}s Cryptographic hash function article}}. See also\+: \begin{DoxyItemize} \item \mbox{\hyperlink{group__cryptographic__functions}{Cryptographic Functions}} \item \mbox{\hyperlink{group__hmac__functions}{HMAC Functions}} \item \mbox{\hyperlink{group__cryptographic__constants}{Cryptographic Contants}} \end{DoxyItemize} \doxysubsection{Function Documentation} \mbox{\Hypertarget{group__digest__functions_gab75d2872586f27999e85b7ed990f6dad}\label{group__digest__functions_gab75d2872586f27999e85b7ed990f6dad}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!DSS@{DSS}} \index{DSS@{DSS}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{DSS()}{DSS()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+DSS (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the DSS message digest (based on SHA-\/0 and \href{http://en.wikipedia.org/wiki/Digital_Signature_Algorithm}{\texttt{ DSA}}) of the supplied argument as a hex string. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_gab75d2872586f27999e85b7ed990f6dad}{DSS}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# returns "{}aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em DSS-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga20bcfd88e83ae5c08af1d4ef5b6a10c7}{DSS\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \begin{DoxyNote}{Note} this digest algorithm is considered outdated and is included for backwards-\/compatibility only when Qore is built with an older openssl library \end{DoxyNote} \mbox{\Hypertarget{group__digest__functions_ga418f6b8eb4acc61b72a3a600d418a1b6}\label{group__digest__functions_ga418f6b8eb4acc61b72a3a600d418a1b6}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!DSS1@{DSS1}} \index{DSS1@{DSS1}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{DSS1()}{DSS1()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+DSS1 (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the DSS1 message digest (based on \href{http://en.wikipedia.org/wiki/SHA-1}{\texttt{ SHA1}} and \href{http://en.wikipedia.org/wiki/Digital_Signature_Algorithm}{\texttt{ DSA}}) of the supplied argument as a hex string. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_ga418f6b8eb4acc61b72a3a600d418a1b6}{DSS1}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# returns "{}aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em DSS1-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_gad7149067899176a4910c1aff7f8c3157}{DSS1\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \begin{DoxyNote}{Note} this digest algorithm is considered outdated and is included for backwards-\/compatibility only when Qore is built with an older openssl library \end{DoxyNote} \mbox{\Hypertarget{group__digest__functions_gad7149067899176a4910c1aff7f8c3157}\label{group__digest__functions_gad7149067899176a4910c1aff7f8c3157}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!DSS1\_bin@{DSS1\_bin}} \index{DSS1\_bin@{DSS1\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{DSS1\_bin()}{DSS1\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+DSS1\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the DSS1 message digest (based on SHA-\/0 and \href{http://en.wikipedia.org/wiki/Digital_Signature_Algorithm}{\texttt{ DSA}}) of the supplied argument as a binary value. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_gad7149067899176a4910c1aff7f8c3157}{DSS1\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em DSS1-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga418f6b8eb4acc61b72a3a600d418a1b6}{DSS1()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \begin{DoxyNote}{Note} this digest algorithm is considered outdated and is included for backwards-\/compatibility only when Qore is built with an older openssl library \end{DoxyNote} \mbox{\Hypertarget{group__digest__functions_ga20bcfd88e83ae5c08af1d4ef5b6a10c7}\label{group__digest__functions_ga20bcfd88e83ae5c08af1d4ef5b6a10c7}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!DSS\_bin@{DSS\_bin}} \index{DSS\_bin@{DSS\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{DSS\_bin()}{DSS\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+DSS\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the DSS message digest (based on SHA-\/0 and \href{http://en.wikipedia.org/wiki/Digital_Signature_Algorithm}{\texttt{ DSA}}) of the supplied argument as a binary value. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_ga20bcfd88e83ae5c08af1d4ef5b6a10c7}{DSS\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em DSS-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_gab75d2872586f27999e85b7ed990f6dad}{DSS()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \begin{DoxyNote}{Note} this digest algorithm is considered outdated and is included for backwards-\/compatibility only when Qore is built with an older openssl library \end{DoxyNote} \mbox{\Hypertarget{group__digest__functions_gab21020c23da78956d435a7e99d49b8d0}\label{group__digest__functions_gab21020c23da78956d435a7e99d49b8d0}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!MD2@{MD2}} \index{MD2@{MD2}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{MD2()}{MD2()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+MD2 (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/MD2_(cryptography)}{\texttt{ MD2 message digest}} of the supplied argument as a hex string. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_ga2e1b34b0ee0e76d35143adeaac8211ba}{Qore\+::\+Option\+::\+HAVE\+\_\+\+MD2}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}a9046c73e00331af68917d3804f70655\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_gab21020c23da78956d435a7e99d49b8d0}{MD2}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# returns "{}a9046c73e00331af68917d3804f70655"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em MD2-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga92b9dd3feb62a72720cfad39f79dd3e7}{MD2\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga92b9dd3feb62a72720cfad39f79dd3e7}\label{group__digest__functions_ga92b9dd3feb62a72720cfad39f79dd3e7}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!MD2\_bin@{MD2\_bin}} \index{MD2\_bin@{MD2\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{MD2\_bin()}{MD2\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+MD2\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/MD2_(cryptography)}{\texttt{ MD2 message digest}} of the supplied argument as binary value. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_ga2e1b34b0ee0e76d35143adeaac8211ba}{Qore\+::\+Option\+::\+HAVE\+\_\+\+MD2}} \end{DoxyParagraph} \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_ga92b9dd3feb62a72720cfad39f79dd3e7}{MD2\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em MD2-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_gab21020c23da78956d435a7e99d49b8d0}{MD2()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga5657d0e938e652fd42df41aca9e66d94}\label{group__digest__functions_ga5657d0e938e652fd42df41aca9e66d94}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!MD4@{MD4}} \index{MD4@{MD4}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{MD4()}{MD4()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+MD4 (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/MD4}{\texttt{ MD4 message digest}} of the supplied argument as a hex string. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}866437cb7a794bce2b727acc0362ee27\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_ga5657d0e938e652fd42df41aca9e66d94}{MD4}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# returns "{}866437cb7a794bce2b727acc0362ee27"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em MD4-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_gac2fd96fcd78e96c7d1d3d373f8a921ef}{MD4\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_gac2fd96fcd78e96c7d1d3d373f8a921ef}\label{group__digest__functions_gac2fd96fcd78e96c7d1d3d373f8a921ef}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!MD4\_bin@{MD4\_bin}} \index{MD4\_bin@{MD4\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{MD4\_bin()}{MD4\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+MD4\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/MD4}{\texttt{ MD4 message digest}} of the supplied argument as a binary value. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_gac2fd96fcd78e96c7d1d3d373f8a921ef}{MD4\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em MD4-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga5657d0e938e652fd42df41aca9e66d94}{MD4()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga78c973088de21a5aae0cd8c68fc3447c}\label{group__digest__functions_ga78c973088de21a5aae0cd8c68fc3447c}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!MD5@{MD5}} \index{MD5@{MD5}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{MD5()}{MD5()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+MD5 (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/MD5}{\texttt{ MD5 message digest}} of the supplied argument as a hex string. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}5d41402abc4b2a76b9719d911017c592\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_ga78c973088de21a5aae0cd8c68fc3447c}{MD5}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# returns "{}5d41402abc4b2a76b9719d911017c592"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em MD5-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} \begin{DoxyItemize} \item equivalent to \mbox{\hyperlink{class_qore_1_1zzz8stringzzz9_a2c63e2b65aafebf67928b88651d4cd39}{Qore\+::zzz8stringzzz9\+::to\+MD5()}} \item the MD5 algorithm is not collision-\/resistant; it\textquotesingle{}s recommended to use another hash algorithm (like SHA-\/256) if cryptographic security is important \end{DoxyItemize} \end{DoxyNote} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_gafea2cdf61fc831e245ba21f9d8397a23}{MD5\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_gafea2cdf61fc831e245ba21f9d8397a23}\label{group__digest__functions_gafea2cdf61fc831e245ba21f9d8397a23}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!MD5\_bin@{MD5\_bin}} \index{MD5\_bin@{MD5\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{MD5\_bin()}{MD5\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+MD5\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/MD5}{\texttt{ MD5 message digest}} of the supplied argument as a binary value. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_gafea2cdf61fc831e245ba21f9d8397a23}{MD5\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em MD5-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga78c973088de21a5aae0cd8c68fc3447c}{MD5()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_gaa83a12e2e54fe66ace6a9a33392d1dbb}\label{group__digest__functions_gaa83a12e2e54fe66ace6a9a33392d1dbb}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!MDC2@{MDC2}} \index{MDC2@{MDC2}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{MDC2()}{MDC2()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+MDC2 (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/MDC2}{\texttt{ MDC2 message digest}} of the supplied argument as a hex string. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_ga57cfc96553919fbdae63254ca4600849}{Qore\+::\+Option\+::\+HAVE\+\_\+\+MDC2}} \end{DoxyParagraph} \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}4517036cf97b2407d6fe22aa5ab878a3\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_gaa83a12e2e54fe66ace6a9a33392d1dbb}{MDC2}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# returns "{}4517036cf97b2407d6fe22aa5ab878a3"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em MDC2-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga87e26aea620d34cb4258773e74f61ad6}{MDC2\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga87e26aea620d34cb4258773e74f61ad6}\label{group__digest__functions_ga87e26aea620d34cb4258773e74f61ad6}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!MDC2\_bin@{MDC2\_bin}} \index{MDC2\_bin@{MDC2\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{MDC2\_bin()}{MDC2\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+MDC2\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/MDC2}{\texttt{ MDC2 message digest}} of the supplied argument as a binary value. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_ga57cfc96553919fbdae63254ca4600849}{Qore\+::\+Option\+::\+HAVE\+\_\+\+MDC2}} \end{DoxyParagraph} \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_ga87e26aea620d34cb4258773e74f61ad6}{MDC2\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em MDC2-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga87e26aea620d34cb4258773e74f61ad6}{MDC2\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga39c77370f9b8106e5668e2d6480af148}\label{group__digest__functions_ga39c77370f9b8106e5668e2d6480af148}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!RIPEMD160@{RIPEMD160}} \index{RIPEMD160@{RIPEMD160}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{RIPEMD160()}{RIPEMD160()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+RIPEMD160 (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/RIPEMD}{\texttt{ RIPEMD message digest}} of the supplied argument as a hex string. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}108f07b8382412612c048d07d13f814118445acd\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_ga39c77370f9b8106e5668e2d6480af148}{RIPEMD160}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# returns "{}108f07b8382412612c048d07d13f814118445acd"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em RIPEMD160-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item RIPEMD160\+\_\+bin() \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga588dd676ff78bd5fbc3e18d6b0a328fe}\label{group__digest__functions_ga588dd676ff78bd5fbc3e18d6b0a328fe}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!RIPEMD160\_binary@{RIPEMD160\_binary}} \index{RIPEMD160\_binary@{RIPEMD160\_binary}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{RIPEMD160\_binary()}{RIPEMD160\_binary()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+RIPEMD160\+\_\+binary (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/RIPEMD}{\texttt{ RIPEMD message digest}} of the supplied argument as a binary value. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = RIPEMD160\_bin(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em RIPEMD160-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga39c77370f9b8106e5668e2d6480af148}{RIPEMD160()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_gadc789f4681257bd18201d49d9d06db82}\label{group__digest__functions_gadc789f4681257bd18201d49d9d06db82}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA@{SHA}} \index{SHA@{SHA}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA()}{SHA()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+SHA (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the SHA (outdated SHA-\/0) message digest of the supplied argument as a hex string. This hash algorithm was withdrawn after publishing and is considered to have serious flaws. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}ac62a630ca850b4ea07eda664eaecf9480843152\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_gadc789f4681257bd18201d49d9d06db82}{SHA}}(\textcolor{stringliteral}{"{}hello"{}}); returns \textcolor{stringliteral}{"{}ac62a630ca850b4ea07eda664eaecf9480843152"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_gaca414387b2224d7f22b4ebadec0b419d}{SHA\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_gaa4c0459a185dd677765d7ef073bf32cb}\label{group__digest__functions_gaa4c0459a185dd677765d7ef073bf32cb}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA1@{SHA1}} \index{SHA1@{SHA1}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA1()}{SHA1()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+SHA1 (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/SHA-1}{\texttt{ SHA1}} message digest of the supplied argument as a hex string. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_gaa4c0459a185dd677765d7ef073bf32cb}{SHA1}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# "{}aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA1-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} equivalent to \mbox{\hyperlink{class_qore_1_1zzz8stringzzz9_a577cc1e9e6cb2f001c36f35a4cff4b74}{Qore\+::zzz8stringzzz9\+::to\+SHA1()}} \end{DoxyNote} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga64b4d9ca4dc8396ad3bf5b6e5fd6ac6b}{SHA1\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga64b4d9ca4dc8396ad3bf5b6e5fd6ac6b}\label{group__digest__functions_ga64b4d9ca4dc8396ad3bf5b6e5fd6ac6b}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA1\_bin@{SHA1\_bin}} \index{SHA1\_bin@{SHA1\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA1\_bin()}{SHA1\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+SHA1\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the \href{http://en.wikipedia.org/wiki/SHA-1}{\texttt{ SHA1}} message digest of the supplied argument as a binary value. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_ga64b4d9ca4dc8396ad3bf5b6e5fd6ac6b}{SHA1\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA1-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_gaa4c0459a185dd677765d7ef073bf32cb}{SHA1()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga31657accc4ffcdf966506bb07bc9a5f5}\label{group__digest__functions_ga31657accc4ffcdf966506bb07bc9a5f5}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA224@{SHA224}} \index{SHA224@{SHA224}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA224()}{SHA224()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+SHA224 (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the SHA-\/224 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a hex string. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_gac2b845ff7b7e953d0ab2c7c0e33154fe}{Qore\+::\+Option\+::\+HAVE\+\_\+\+SHA224}} \end{DoxyParagraph} \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}ea09ae9cc6768c50fcee903ed054556e5bfc8347907f12598aa24193\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_ga31657accc4ffcdf966506bb07bc9a5f5}{SHA224}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# returns "{}ea09ae9cc6768c50fcee903ed054556e5bfc8347907f12598aa24193"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA224-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} equivalent to \mbox{\hyperlink{class_qore_1_1zzz8stringzzz9_a3341bfb07348577260ece5244f958caf}{Qore\+::zzz8stringzzz9\+::to\+SHA224()}} \end{DoxyNote} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \item \mbox{\hyperlink{group__digest__functions_gad78d030a15fd77e92b6acbebf0f01c3b}{SHA224\+\_\+bin()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_gad78d030a15fd77e92b6acbebf0f01c3b}\label{group__digest__functions_gad78d030a15fd77e92b6acbebf0f01c3b}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA224\_bin@{SHA224\_bin}} \index{SHA224\_bin@{SHA224\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA224\_bin()}{SHA224\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+SHA224\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the SHA-\/224 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a binary value. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_gac2b845ff7b7e953d0ab2c7c0e33154fe}{Qore\+::\+Option\+::\+HAVE\+\_\+\+SHA224}} \end{DoxyParagraph} \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_gad78d030a15fd77e92b6acbebf0f01c3b}{SHA224\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA224-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga31657accc4ffcdf966506bb07bc9a5f5}{SHA224()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga2650a6a57142a6c971c583f85c102bef}\label{group__digest__functions_ga2650a6a57142a6c971c583f85c102bef}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA256@{SHA256}} \index{SHA256@{SHA256}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA256()}{SHA256()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+SHA256 (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the SHA-\/256 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a hex string. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_ga8bbafb0df946db4960ec53f1739352c2}{Qore\+::\+Option\+::\+HAVE\+\_\+\+SHA256}} \end{DoxyParagraph} \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_ga2650a6a57142a6c971c583f85c102bef}{SHA256}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# returns "{}2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA256-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} equivalent to \mbox{\hyperlink{class_qore_1_1zzz8stringzzz9_a11a362bbdba504966590d68bc6839350}{Qore\+::zzz8stringzzz9\+::to\+SHA256()}} \end{DoxyNote} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga3e79a4b0a0fcbc536472144fbcb60fd7}{SHA256\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga3e79a4b0a0fcbc536472144fbcb60fd7}\label{group__digest__functions_ga3e79a4b0a0fcbc536472144fbcb60fd7}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA256\_bin@{SHA256\_bin}} \index{SHA256\_bin@{SHA256\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA256\_bin()}{SHA256\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+SHA256\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the SHA-\/256 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a binary value. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_ga8bbafb0df946db4960ec53f1739352c2}{Qore\+::\+Option\+::\+HAVE\+\_\+\+SHA256}} \end{DoxyParagraph} \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_ga3e79a4b0a0fcbc536472144fbcb60fd7}{SHA256\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA256-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga2650a6a57142a6c971c583f85c102bef}{SHA256()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_gad1ac64eef1215b1da8be27c2cd3554d8}\label{group__digest__functions_gad1ac64eef1215b1da8be27c2cd3554d8}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA384@{SHA384}} \index{SHA384@{SHA384}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA384()}{SHA384()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+SHA384 (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the SHA-\/384 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a hex string. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_gaefa59259c4fcbe89eaf1efa5364e0420}{Qore\+::\+Option\+::\+HAVE\+\_\+\+SHA384}} \end{DoxyParagraph} \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}59e1748777448c69de6b800d7a33bbfb9ff1b463e44354c3553bcdb9c666fa90125a3c79f90397bdf5f6a13de828684f\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_gad1ac64eef1215b1da8be27c2cd3554d8}{SHA384}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# returns "{}59e1748777448c69de6b800d7a33bbfb9ff1b463e44354c3553bcdb9c666fa90125a3c79f90397bdf5f6a13de828684f"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA384-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} equivalent to \mbox{\hyperlink{class_qore_1_1zzz8stringzzz9_ae572499e8fe84e24455806ba2556e5c5}{Qore\+::zzz8stringzzz9\+::to\+SHA384()}} \end{DoxyNote} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga46725d7321778042e1acc9fc7e4f0842}{SHA384\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga46725d7321778042e1acc9fc7e4f0842}\label{group__digest__functions_ga46725d7321778042e1acc9fc7e4f0842}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA384\_bin@{SHA384\_bin}} \index{SHA384\_bin@{SHA384\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA384\_bin()}{SHA384\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+SHA384\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the SHA-\/384 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a binary value. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_gaefa59259c4fcbe89eaf1efa5364e0420}{Qore\+::\+Option\+::\+HAVE\+\_\+\+SHA384}} \end{DoxyParagraph} \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_ga46725d7321778042e1acc9fc7e4f0842}{SHA384\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA384-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_gad1ac64eef1215b1da8be27c2cd3554d8}{SHA384()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga6f598af6d5f8eecd18e9b8048ca610b3}\label{group__digest__functions_ga6f598af6d5f8eecd18e9b8048ca610b3}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA512@{SHA512}} \index{SHA512@{SHA512}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA512()}{SHA512()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gacf16b4126b795f4b6933ef3425cadae3}{string}} Qore\+::\+SHA512 (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the SHA-\/512 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a hex string. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_ga361d12136d30719ba4861fd892ee022f}{Qore\+::\+Option\+::\+HAVE\+\_\+\+SHA512}} \end{DoxyParagraph} \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a hex string of the digest (ex\+: {\ttfamily \char`\"{}9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043\char`\"{}}) \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{string str = \mbox{\hyperlink{group__digest__functions_ga6f598af6d5f8eecd18e9b8048ca610b3}{SHA512}}(\textcolor{stringliteral}{"{}hello"{}}); \textcolor{comment}{\# returns "{}9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043"{}}} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA512-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxyNote}{Note} equivalent to \mbox{\hyperlink{class_qore_1_1zzz8stringzzz9_a0a8b0fd0c6dc97af23ad50be3125cb4d}{Qore\+::zzz8stringzzz9\+::to\+SHA512()}} \end{DoxyNote} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga14a7dc1fd6565a0ffa61d2dc943ef3e1}{SHA512\+\_\+bin()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_ga14a7dc1fd6565a0ffa61d2dc943ef3e1}\label{group__digest__functions_ga14a7dc1fd6565a0ffa61d2dc943ef3e1}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA512\_bin@{SHA512\_bin}} \index{SHA512\_bin@{SHA512\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA512\_bin()}{SHA512\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+SHA512\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the SHA-\/512 message digest (a variant of \href{http://en.wikipedia.org/wiki/SHA-2}{\texttt{ SHA-\/2}}) of the supplied argument as a binary value. \begin{DoxyParagraph}{Platform Availability\+:} \mbox{\hyperlink{group__option__constants_ga361d12136d30719ba4861fd892ee022f}{Qore\+::\+Option\+::\+HAVE\+\_\+\+SHA512}} \end{DoxyParagraph} \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_ga14a7dc1fd6565a0ffa61d2dc943ef3e1}{SHA512\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA512-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_ga6f598af6d5f8eecd18e9b8048ca610b3}{SHA512()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso} \mbox{\Hypertarget{group__digest__functions_gaca414387b2224d7f22b4ebadec0b419d}\label{group__digest__functions_gaca414387b2224d7f22b4ebadec0b419d}} \index{Digest (Hash) Functions@{Digest (Hash) Functions}!SHA\_bin@{SHA\_bin}} \index{SHA\_bin@{SHA\_bin}!Digest (Hash) Functions@{Digest (Hash) Functions}} \doxysubsubsection{\texorpdfstring{SHA\_bin()}{SHA\_bin()}} {\footnotesize\ttfamily \mbox{\hyperlink{group__type__conversion__functions_gaf11c7f5c43ced1e9b95bd2270ee87ed9}{binary}} Qore\+::\+SHA\+\_\+bin (\begin{DoxyParamCaption}\item[{data}]{data }\end{DoxyParamCaption})} Returns the SHA (outdated SHA-\/0) message digest of the supplied argument as a binary value. This hash algorithm was withdrawn after publishing and is considered to have serious flaws. \begin{DoxyParagraph}{Code Flags\+:} \mbox{\hyperlink{code_flags_RET_VALUE_ONLY}{RET\+\_\+\+VALUE\+\_\+\+ONLY}} \end{DoxyParagraph} \begin{DoxyParams}{Parameters} {\em data} & the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments\\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} a binary value of the digest \end{DoxyReturn} \begin{DoxyParagraph}{Example\+:} \begin{DoxyCode}{0} \DoxyCodeLine{binary bin = \mbox{\hyperlink{group__digest__functions_gaca414387b2224d7f22b4ebadec0b419d}{SHA\_bin}}(\textcolor{stringliteral}{"{}hello"{}});} \end{DoxyCode} \end{DoxyParagraph} \begin{DoxyExceptions}{Exceptions} {\em SHA-\/\+DIGEST-\/\+ERROR} & error calculating digest (should not normally happen)\\ \hline \end{DoxyExceptions} \begin{DoxySeeAlso}{See also} \begin{DoxyItemize} \item \mbox{\hyperlink{group__digest__functions_gadc789f4681257bd18201d49d9d06db82}{SHA()}} \item \mbox{\hyperlink{group__hmac__functions_gaefc09e78e7bccccf7bc3629e4e86c9e2}{digest()}} \end{DoxyItemize} \end{DoxySeeAlso}