Qore Programming Language Reference Manual
1.12.0
|
Modules | |
HMAC Functions | |
Functions | |
string | Qore::DSS (data data) |
Returns the DSS message digest (based on SHA-0 and DSA) of the supplied argument as a hex string. More... | |
string | Qore::DSS1 (data data) |
Returns the DSS1 message digest (based on SHA1 and DSA) of the supplied argument as a hex string. More... | |
binary | Qore::DSS1_bin (data data) |
Returns the DSS1 message digest (based on SHA-0 and DSA) of the supplied argument as a binary value. More... | |
binary | Qore::DSS_bin (data data) |
Returns the DSS message digest (based on SHA-0 and DSA) of the supplied argument as a binary value. More... | |
string | Qore::MD2 (data data) |
Returns the MD2 message digest of the supplied argument as a hex string. More... | |
binary | Qore::MD2_bin (data data) |
Returns the MD2 message digest of the supplied argument as binary value. More... | |
string | Qore::MD4 (data data) |
Returns the MD4 message digest of the supplied argument as a hex string. More... | |
binary | Qore::MD4_bin (data data) |
Returns the MD4 message digest of the supplied argument as a binary value. More... | |
string | Qore::MD5 (data data) |
Returns the MD5 message digest of the supplied argument as a hex string. More... | |
binary | Qore::MD5_bin (data data) |
Returns the MD5 message digest of the supplied argument as a binary value. More... | |
string | Qore::MDC2 (data data) |
Returns the MDC2 message digest of the supplied argument as a hex string. More... | |
binary | Qore::MDC2_bin (data data) |
Returns the MDC2 message digest of the supplied argument as a binary value. More... | |
string | Qore::RIPEMD160 (data data) |
Returns the RIPEMD message digest of the supplied argument as a hex string. More... | |
binary | Qore::RIPEMD160_binary (data data) |
Returns the RIPEMD message digest of the supplied argument as a binary value. More... | |
string | Qore::SHA (data data) |
Returns the SHA (outdated SHA-0) message digest of the supplied argument as a hex string. More... | |
string | Qore::SHA1 (data data) |
Returns the SHA1 message digest of the supplied argument as a hex string. More... | |
binary | Qore::SHA1_bin (data data) |
Returns the SHA1 message digest of the supplied argument as a binary value. More... | |
string | Qore::SHA224 (data data) |
Returns the SHA-224 message digest (a variant of SHA-2) of the supplied argument as a hex string. More... | |
binary | Qore::SHA224_bin (data data) |
Returns the SHA-224 message digest (a variant of SHA-2) of the supplied argument as a binary value. More... | |
string | Qore::SHA256 (data data) |
Returns the SHA-256 message digest (a variant of SHA-2) of the supplied argument as a hex string. More... | |
binary | Qore::SHA256_bin (data data) |
Returns the SHA-256 message digest (a variant of SHA-2) of the supplied argument as a binary value. More... | |
string | Qore::SHA384 (data data) |
Returns the SHA-384 message digest (a variant of SHA-2) of the supplied argument as a hex string. More... | |
binary | Qore::SHA384_bin (data data) |
Returns the SHA-384 message digest (a variant of SHA-2) of the supplied argument as a binary value. More... | |
string | Qore::SHA512 (data data) |
Returns the SHA-512 message digest (a variant of SHA-2) of the supplied argument as a hex string. More... | |
binary | Qore::SHA512_bin (data data) |
Returns the SHA-512 message digest (a variant of SHA-2) of the supplied argument as a binary value. More... | |
binary | Qore::SHA_bin (data data) |
Returns the SHA (outdated SHA-0) message digest of the supplied argument as a binary value. More... | |
Qore's cryptography support is provided by the OpenSSL 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 "message," and the hash value is sometimes called the message digest or simply digest.
For more info: Wikipedia's Cryptographic hash function article.
See also:
string Qore::DSS | ( | data | data | ) |
Returns the DSS message digest (based on SHA-0 and DSA) of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d"
)DSS-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::DSS1 | ( | data | data | ) |
Returns the DSS1 message digest (based on SHA1 and DSA) of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d"
)DSS1-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::DSS1_bin | ( | data | data | ) |
Returns the DSS1 message digest (based on SHA-0 and DSA) of the supplied argument as a binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
DSS1-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::DSS_bin | ( | data | data | ) |
Returns the DSS message digest (based on SHA-0 and DSA) of the supplied argument as a binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
DSS-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::MD2 | ( | data | data | ) |
Returns the MD2 message digest of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"a9046c73e00331af68917d3804f70655"
)MD2-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::MD2_bin | ( | data | data | ) |
Returns the MD2 message digest of the supplied argument as binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
MD2-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::MD4 | ( | data | data | ) |
Returns the MD4 message digest of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"866437cb7a794bce2b727acc0362ee27"
)MD4-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::MD4_bin | ( | data | data | ) |
Returns the MD4 message digest of the supplied argument as a binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
MD4-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::MD5 | ( | data | data | ) |
Returns the MD5 message digest of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"5d41402abc4b2a76b9719d911017c592"
)MD5-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::MD5_bin | ( | data | data | ) |
Returns the MD5 message digest of the supplied argument as a binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
MD5-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::MDC2 | ( | data | data | ) |
Returns the MDC2 message digest of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"4517036cf97b2407d6fe22aa5ab878a3"
)MDC2-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::MDC2_bin | ( | data | data | ) |
Returns the MDC2 message digest of the supplied argument as a binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
MDC2-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::RIPEMD160 | ( | data | data | ) |
Returns the RIPEMD message digest of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"108f07b8382412612c048d07d13f814118445acd"
)RIPEMD160-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::RIPEMD160_binary | ( | data | data | ) |
Returns the RIPEMD message digest of the supplied argument as a binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
RIPEMD160-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::SHA | ( | data | data | ) |
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.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"ac62a630ca850b4ea07eda664eaecf9480843152"
)SHA-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::SHA1 | ( | data | data | ) |
Returns the SHA1 message digest of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d"
)SHA1-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::SHA1_bin | ( | data | data | ) |
Returns the SHA1 message digest of the supplied argument as a binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
SHA1-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::SHA224 | ( | data | data | ) |
Returns the SHA-224 message digest (a variant of SHA-2) of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"ea09ae9cc6768c50fcee903ed054556e5bfc8347907f12598aa24193"
)SHA224-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::SHA224_bin | ( | data | data | ) |
Returns the SHA-224 message digest (a variant of SHA-2) of the supplied argument as a binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
SHA224-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::SHA256 | ( | data | data | ) |
Returns the SHA-256 message digest (a variant of SHA-2) of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
)SHA256-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::SHA256_bin | ( | data | data | ) |
Returns the SHA-256 message digest (a variant of SHA-2) of the supplied argument as a binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
SHA256-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::SHA384 | ( | data | data | ) |
Returns the SHA-384 message digest (a variant of SHA-2) of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"59e1748777448c69de6b800d7a33bbfb9ff1b463e44354c3553bcdb9c666fa90125a3c79f90397bdf5f6a13de828684f"
)SHA384-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::SHA384_bin | ( | data | data | ) |
Returns the SHA-384 message digest (a variant of SHA-2) of the supplied argument as a binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
SHA384-DIGEST-ERROR | error calculating digest (should not normally happen) |
string Qore::SHA512 | ( | data | data | ) |
Returns the SHA-512 message digest (a variant of SHA-2) of the supplied argument as a hex string.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
"9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043"
)SHA512-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::SHA512_bin | ( | data | data | ) |
Returns the SHA-512 message digest (a variant of SHA-2) of the supplied argument as a binary value.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
SHA512-DIGEST-ERROR | error calculating digest (should not normally happen) |
binary Qore::SHA_bin | ( | data | data | ) |
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.
data | the data to process and produce a digest for; the trailing null character is not included in the digest when processing string arguments |
SHA-DIGEST-ERROR | error calculating digest (should not normally happen) |