new Digest()
Digester interface.
- Source:
Methods
-
<inner> Digester(item) → {external:ArrayBuffer}
-
Digests an item serialized as an array of bytes.
Any byte array value must be accepted and have a non
nullreturn value: for anya,digester(a) != null.All valid inputs should produce in output an array of the same size:for any
a1anda2,digester(a1).byteLength == digester(a2).byteLength.The output must be consistent, an identical output should be returned if called twice on the same array: for any
a1anda2,Arrays.equals(a1, a2)impliesArrays.equals(digester(a1), digester(a2)).In addition to those constrains, it is recommended that it has the properties of a cryptographic hash function.
Parameters:
Name Type Description itemexternal:ArrayBuffer the item to digest. - Source:
Returns:
the message digest of the item.- Type
- external:ArrayBuffer