Skip to content
Permalink
Browse files

fix hash() expression help, had missing quotes

  • Loading branch information
kannes authored and nyalldawson committed Sep 21, 2020
1 parent 0fb7c44 commit 7e2d931e58856ccb65c03db0a2f0418144ee6f54
Showing with 16 additions and 18 deletions.
  1. +16 −18 resources/function_help/json/hash
@@ -3,41 +3,39 @@
"name": "hash",
"groups": ["Conversions"],
"type": "function",
"description": "Creates a hash from a string with a given method. One byte (8 bits) is represented with two hex ''digits'', so md4 (16 bytes) produces a 16 * 2 = 32 character long hex string and keccak_512 (64 bytes) produces a 64 * 2 = 128 character long hex string.",
"description": "Creates a hash from a string with a given method. One byte (8 bits) is represented with two hex ''digits'', so 'md4' (16 bytes) produces a 16 * 2 = 32 character long hex string and 'keccak_512' (64 bytes) produces a 64 * 2 = 128 character long hex string.",
"variableLenArguments": false,
"arguments": [
{"arg":"string", "description": "the string to hash"}, {"arg":"method",
"description": "The hash method among 'md4', 'md5', 'sha1', 'sha224', 'sha384', 'sha512', 'sha3_224', 'sha3_256', 'sha3_384', 'sha3_512', 'keccak_224', 'keccak_256', 'keccak_384', 'keccak_512'"}],
"examples": [
{ "expression":"hash('QGIS', md4)",
{ "expression":"hash('QGIS', 'md4')",
"returns":"'c0fc71c241cdebb6e888cbac0e2b68eb'"},
{ "expression":"hash('QGIS', md5)",
{ "expression":"hash('QGIS', 'md5')",
"returns":"'57470aaa9e22adaefac7f5f342f1c6da'"},
{ "expression":"hash('QGIS', sha1)",
{ "expression":"hash('QGIS', 'sha1')",
"returns":"'f87cfb2b74cdd5867db913237024e7001e62b114'"},
{ "expression":"hash('QGIS', sha224)",
{ "expression":"hash('QGIS', 'sha224')",
"returns":"'4093a619ada631c770f44bc643ead18fb393b93d6a6af1861fcfece0'"},
{ "expression":"hash('QGIS', sha256)",
{ "expression":"hash('QGIS', 'sha256')",
"returns":"'eb045cba7a797aaa06ac58830846e40c8e8c780bc0676d3393605fae50c05309'"},
{ "expression":"hash('QGIS', sha384)",
{ "expression":"hash('QGIS', 'sha384')",
"returns":"'91c1de038cc3d09fdd512e99f9dd9922efadc39ed21d3922e69a4305cc25506033aee388e554b78714c8734f9cd7e610'"},
{ "expression":"hash('QGIS', sha512)",
{ "expression":"hash('QGIS', 'sha512')",
"returns":"'c2c092f2ab743bf8edbeb6d028a745f30fc720408465ed369421f0a4e20fa5e27f0c90ad72d3f1d836eaa5d25cd39897d4cf77e19984668ef58da6e3159f18ac'"},
{ "expression":"hash('QGIS', sha3_224)",
{ "expression":"hash('QGIS', 'sha3_224')",
"returns":"'467f49a5039e7280d5d42fd433e80d203439e338eaabd701f0d6c17d'"},
{ "expression":"hash('QGIS', sha3_256)",
{ "expression":"hash('QGIS', 'sha3_256')",
"returns":"'540f7354b6b8a6e735f2845250f15f4f3ba4f666c55574d9e9354575de0e980f'"},
{ "expression":"hash('QGIS', sha3_384)",
{ "expression":"hash('QGIS', 'sha3_384')",
"returns":"'96052da1e77679e9a65f60d7ead961b287977823144786386eb43647b0901fd8516fa6f1b9d243fb3f28775e6dde6107'"},
{ "expression":"hash('QGIS', sha3_512)",
{ "expression":"hash('QGIS', 'sha3_512')",
"returns":"'900d079dc69761da113980253aa8ac0414a8bd6d09879a916228f8743707c4758051c98445d6b8945ec854ff90655005e02aceb0a2ffc6a0ebf818745d665349'"},
{ "expression":"hash('QGIS', keccak_224)",
{ "expression":"hash('QGIS', 'keccak_224')",
"returns":"'5b0ce6acef8b0a121d4ac4f3eaa8503c799ad4e26a3392d1fb201478'"},
{ "expression":"hash('QGIS', keccak_256)",
{ "expression":"hash('QGIS', 'keccak_256')",
"returns":"'991c520aa6815392de24087f61b2ae0fd56abbfeee4a8ca019c1011d327c577e'"},
{ "expression":"hash('QGIS', keccak_384)",
"returns":"'c57a3aed9d856fa04e5eeee9b62b6e027cca81ba574116d3cc1f0d48a1ef9e5886ff463ea8d0fac772ee473bf92f810d'"},
{ "expression":"keccak_512('QGIS')",
"returns":"'6f0f751776b505e317de222508fa5d3ed7099d8f07c74fed54ccee6e7cdc6b89b4a085e309f2ee5210c9'"}
{ "expression":"hash('QGIS', 'keccak_384')",
"returns":"'c57a3aed9d856fa04e5eeee9b62b6e027cca81ba574116d3cc1f0d48a1ef9e5886ff463ea8d0fac772ee473bf92f810d'"}
]
}

0 comments on commit 7e2d931

Please sign in to comment.
You can’t perform that action at this time.