Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-9249

Add HASHBYTES function

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • Neo.M1
    • Neo
    • query
    • None
    • 1

    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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              simon.dew Simon Dew
              Donald.haggart Donald Haggart
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty