new DropboxContentHasher()
Methods
-
digest(encoding)
-
Returns the final Dropbox content hash.
Parameters:
Name Type Description encoding'hex' | undefined Optional output encoding. Returns:
Binary digest, or a hexadecimal string.- Type
- Buffer | string
-
update(data)
-
Adds binary data to the hash.
Parameters:
Name Type Description dataBuffer | Uint8Array | ArrayBuffer Binary data to hash. Returns:
This hasher instance.- Type
- DropboxContentHasher