Description
New query function:
HASHBYTES( <input>, [ <options> ])
<Input> Is a binary object or any type with the JSON marshalled value of the type being used as the input.
<options> Is an object with the member "algorithm" that is a string specifying the algorithm to use and possibly other options related to the selected algorithm, or simply a string value specifying the algorithm (in which case it isn't possible to specify other options).
Algorithms supported:
"crc32", "md4", "md5", "sha224", "sha256", "sha384", "sha512", "sha512/224", "sha512/256"
With "crc32" an additional option "polynomial" can be specified which is either, "ieee" (the default if not specified), "castagnoli", "koopman" or a valid 32-bit integer, provided either as JSON number (limited to decimal) or as a string that can be parsed as the numeric value (hexadecimal can be used with a "0x" prefix).
Attachments
Issue Links
- relates to
-
MB-16624 Scalar functions in N1QL for hashing data
- Closed