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
null
return value: for anya
,digester(a) != null
.All valid inputs should produce in output an array of the same size:for any
a1
anda2
,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
a1
anda2
,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 item
external:ArrayBuffer the item to digest. - Source:
Returns:
the message digest of the item.- Type
- external:ArrayBuffer