File.prototype.bodyHash()

Return the hash of the file’s body.

Syntax

file.bodyHash() string

Description

Return a hash of the file’s body, which is a fingerprint of it. When two files have the same bodyHash, it is guaranteed that their bodies store the same data.

Note that the format of the bodyHash is not fixed. The only guarantee is that it is a HEX string no longer than 256 bytes (in HEX form).

Examples

An example bodyHash.

Subscribe to our newsletter!