Returns the DSS message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a string of hex characters.
DSS(string | binary
)
$str = DSS("hello"); # returns "aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d"
Table 3.204. Arguments and Return Values for DSS()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the DSS message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.205. Exceptions thrown by DSS()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the DSS message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a binary object.
DSS_bin(string | binary
)
$bin = DSS_bin("hello"); # returns <aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d>
Table 3.206. Arguments and Return Values for DSS_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
Binary |
Returns the DSS message digest of the supplied argument (for strings, the trailing null character is not included in the digest). |
Table 3.207. Exceptions thrown by DSS_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the DSS1 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a hex string.
DSS1(string | binary
)
$str = DSS1("hello"); # return "aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d"
Table 3.208. Arguments and Return Values for DSS1()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
The DSS1 message digest of the supplied argument as a hex string (for strings, the trailing null character is not included in the digest) |
Table 3.209. Exceptions thrown by DSS1()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the DSS1 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a binary object.
DSS1_bin(string | binary
)
$bin = DSS1_bin("hello"); # returns <aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d>
Table 3.210. Arguments and Return Values for DSS1_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
Binary |
The DSS1 message digest of the supplied argument (for strings, the trailing null character is not included in the digest). |
Table 3.211. Exceptions thrown by DSS1()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the MD2 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a string of hex digits.
MD2(string | binary
)
$str = MD2("hello"); # returns "a9046c73e00331af68917d3804f70655"
Table 3.212. Arguments and Return Values for MD2()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
The MD2 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.213. Exceptions thrown by MD2()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the MD2 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a string of hex digits.
MD2_bin(string | binary
)
$bin = MD2_bin("hello"); # returns <a9046c73e00331af68917d3804f70655>
Table 3.214. Arguments and Return Values for MD2_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
Binary |
The MD2 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.215. Exceptions thrown by MD2_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the MD4 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a string of hex characters.
MD4(string | binary
)
$str = MD4("hello"); # returns "866437cb7a794bce2b727acc0362ee27"
Table 3.216. Arguments and Return Values for MD4()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
The MD4 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.217. Exceptions thrown by MD4()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the MD4 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a string of hex characters.
MD4_bin(string | binary
)
$str = MD4_bin("hello"); # returns "866437cb7a794bce2b727acc0362ee27"
Table 3.218. Arguments and Return Values for MD4_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
Binary |
The MD4 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a binary object |
Table 3.219. Exceptions thrown by MD4_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the MD5 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a string of hex characters.
MD5(string | binary
)
$str = MD5("hello"); # returns "5d41402abc4b2a76b9719d911017c592"
Table 3.220. Arguments and Return Values for MD5()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
The MD5 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a string of hext characters. |
Table 3.221. Exceptions thrown by MD5()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the MD5 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a binary object.
MD5_bin(string | binary
)
$str = MD5_bin("hello"); # returns <5d41402abc4b2a76b9719d911017c592>
Table 3.222. Arguments and Return Values for MD5_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
Binary |
The MD5 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a binary object. |
Table 3.223. Exceptions thrown by MD5_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the MDC2 message digest of the supplied argument (for strings, the trailing null character is not included in the digest). The availability of this function depends on the availability of the MDC2 algorithm in the openssl library used to compile the Qore library; for maximum portability check the constant HAVE_MDC2
before running this function. See Library Option Constants for a list of all option constants.
MDC2(string | binary
)
$str = MDC2("hello");
Table 3.224. Arguments and Return Values for MDC2()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the MDC2 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.225. Exceptions thrown by MDC2()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
| This exception is thrown when the function is not available; for maximum portability, check the constant |
Returns the MDC2 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a binary object. The availability of this function depends on the availability of the MDC2 algorithm in the openssl library used to compile the Qore library; for maximum portability check the constant HAVE_MDC2
before running this function. See Library Option Constants for a list of all option constants.
MDC2_bin(string | binary
)
$bin = MDC2_bin("hello");
Table 3.226. Arguments and Return Values for MDC2_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
Binary |
Returns the MDC2 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.227. Exceptions thrown by MDC2_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
| This exception is thrown when the function is not available; for maximum portability, check the constant |
Returns the RIPEMD160 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a string of hex characters.
RIPEMD160(string | binary
)
$str = RIPEMD160("hello"); # returns "108f07b8382412612c048d07d13f814118445acd"
Table 3.228. Arguments and Return Values for RIPEMD160()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the RIPEMD160 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.229. Exceptions thrown by RIPEMD160()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the RIPEMD160 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a binary object.
RIPEMD160_bin(string | binary
)
$str = RIPEMD160_bin("hello"); # returns "108f07b8382412612c048d07d13f814118445acd"
Table 3.230. Arguments and Return Values for RIPEMD160_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
Binary |
Returns the RIPEMD160 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.231. Exceptions thrown by RIPEMD160_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the SHA message digest of the supplied argument (for strings, the trailing null character is not included in the digest) as a string of hext characters.
SHA(string | binary
)
$str = SHA("hello"); returns "ac62a630ca850b4ea07eda664eaecf9480843152"
Table 3.232. Arguments and Return Values for SHA()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the SHA message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.233. Exceptions thrown by SHA()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the SHA message digest of the supplied argument (for strings, the trailing null character is not included in the digest)
SHA_bin(string | binary
)
$bin = SHA_bin("hello"); returns <ac62a630ca850b4ea07eda664eaecf9480843152>
Table 3.234. Arguments and Return Values for SHA_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
Binary |
Returns the SHA message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.235. Exceptions thrown by SHA_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the SHA1 message digest of the supplied argument as a string of hex characters. For string arguments, the trailing null character is not included in the digest.
SHA1(string | binary
)
$str = SHA1("hello"); # "aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d"
Table 3.236. Arguments and Return Values for SHA1()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the SHA1 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.237. Exceptions thrown by SHA1()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the SHA1 message digest of the supplied argument as a string of hex characters. For string arguments, the trailing null character is not included in the digest.
SHA1_bin(string | binary
)
$bin = SHA1_bin("hello"); # <aaf4c61ddcc5e8a2dabede0f3b482cd9aea9434d>
Table 3.238. Arguments and Return Values for SHA1_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the SHA1 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.239. Exceptions thrown by SHA1_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
Returns the SHA224 message digest of the supplied argument as a string of hex characters. For string arguments, the trailing null character is not included in the digest. The availability of this function depends on the availability of the SHA224 algorithm in the openssl library used to compile the Qore library; for maximum portability check the constant HAVE_SHA224
before running this function. See Library Option Constants for a list of all option constants.
SHA224(string | binary
)
$str = SHA224("hello"); # "ea09ae9cc6768c50fcee903ed054556e5bfc8347907f12598aa24193"
Table 3.240. Arguments and Return Values for SHA224()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the SHA224 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.241. Exceptions thrown by SHA224()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
| This exception is thrown when the function is not available; for maximum portability, check the constant |
Returns the SHA224 message digest of the supplied argument as a string of hex characters. For string arguments, the trailing null character is not included in the digest. The availability of this function depends on the availability of the SHA224 algorithm in the openssl library used to compile the Qore library; for maximum portability check the constant HAVE_SHA224
before running this function. See Library Option Constants for a list of all option constants.
SHA224_bin(string | binary
)
$bin = SHA224_bin("hello"); # <ea09ae9cc6768c50fcee903ed054556e5bfc8347907f12598aa24193>
Table 3.242. Arguments and Return Values for SHA224_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the SHA224 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.243. Exceptions thrown by SHA224_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
| This exception is thrown when the function is not available; for maximum portability, check the constant |
Returns the SHA256 message digest of the supplied argument as a string of hex characters. For string arguments, the trailing null character is not included in the digest. The availability of this function depends on the availability of the SHA256 algorithm in the openssl library used to compile the Qore library; for maximum portability check the constant HAVE_SHA256
before running this function. See Library Option Constants for a list of all option constants.
SHA256(string | binary
)
$str = SHA256("hello"); # "2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824"
Table 3.244. Arguments and Return Values for SHA256()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the SHA256 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.245. Exceptions thrown by SHA256()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
| This exception is thrown when the function is not available; for maximum portability, check the constant |
Returns the SHA256 message digest of the supplied argument as a string of hex characters. For string arguments, the trailing null character is not included in the digest. The availability of this function depends on the availability of the SHA256 algorithm in the openssl library used to compile the Qore library; for maximum portability check the constant HAVE_SHA256
before running this function. See Library Option Constants for a list of all option constants.
SHA256_bin(string | binary
)
$bin = SHA256_bin("hello"); # <2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824>
Table 3.246. Arguments and Return Values for SHA256_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the SHA256 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.247. Exceptions thrown by SHA256_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
| This exception is thrown when the function is not available; for maximum portability, check the constant |
Returns the SHA384 message digest of the supplied argument as a string of hex characters. For string arguments, the trailing null character is not included in the digest. The availability of this function depends on the availability of the SHA384 algorithm in the openssl library used to compile the Qore library; for maximum portability check the constant HAVE_SHA384
before running this function. See Library Option Constants for a list of all option constants.
SHA384(string | binary
)
$str = SHA384("hello"); # "59e1748777448c69de6b800d7a33bbfb9ff1b463e44354c3553bcdb9c666fa90125a3c79f90397bdf5f6a13de828684f"
Table 3.248. Arguments and Return Values for SHA384()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the SHA384 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.249. Exceptions thrown by SHA384()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
| This exception is thrown when the function is not available; for maximum portability, check the constant |
Returns the SHA384 message digest of the supplied argument as a string of hex characters. For string arguments, the trailing null character is not included in the digest. The availability of this function depends on the availability of the SHA384 algorithm in the openssl library used to compile the Qore library; for maximum portability check the constant HAVE_SHA384
before running this function. See Library Option Constants for a list of all option constants.
SHA384_bin(string | binary
)
$bin = SHA384_bin("hello"); # <59e1748777448c69de6b800d7a33bbfb9ff1b463e44354c3553bcdb9c666fa90125a3c79f90397bdf5f6a13de828684f>
Table 3.250. Arguments and Return Values for SHA384_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the SHA384 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.251. Exceptions thrown by SHA384_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
| This exception is thrown when the function is not available; for maximum portability, check the constant |
Returns the SHA512 message digest of the supplied argument as a string of hex characters. For string arguments, the trailing null character is not included in the digest. The availability of this function depends on the availability of the SHA512 algorithm in the openssl library used to compile the Qore library; for maximum portability check the constant HAVE_SHA512
before running this function. See Library Option Constants for a list of all option constants.
SHA512(string | binary
)
$str = SHA512("hello"); # "9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043"
Table 3.252. Arguments and Return Values for SHA512()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the SHA512 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.253. Exceptions thrown by SHA512()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
| This exception is thrown when the function is not available; for maximum portability, check the constant |
Returns the SHA512 message digest of the supplied argument as a string of hex characters. For string arguments, the trailing null character is not included in the digest. The availability of this function depends on the availability of the SHA512 algorithm in the openssl library used to compile the Qore library; for maximum portability check the constant HAVE_SHA512
before running this function. See Library Option Constants for a list of all option constants.
SHA512_bin(string | binary
)
$bin = SHA512_bin("hello"); # <9b71d224bd62f3785d96d46ad3ea3d73319bfbc2890caadae2dff72519673ca72323c3d99ba5c11d7c7acc6e14b8c5da0c4663475c2e5c3adef46f73bcdec043>
Table 3.254. Arguments and Return Values for SHA512_bin()
Argument Type |
Return Type |
Description |
---|---|---|
String | Binary |
String |
Returns the SHA512 message digest of the supplied argument (for strings, the trailing null character is not included in the digest) |
Table 3.255. Exceptions thrown by SHA512_bin()
err |
desc |
---|---|
|
missing data parameter, invalid data parameter (expecing string or binary), error calculating digest |
| This exception is thrown when the function is not available; for maximum portability, check the constant |