class Utilities method .computeDigest()

Utilities is the Apps Script service.

.computeDigest() is the method name you will see after a dot in your code.

What it does

Returns a hash digest of a string or blob.

Why it's used

  • Hash a payload for webhook signatures or dedup keys.
  • Verify that downloaded content matches an expected checksum.

Common errors

  • Forgetting parentheses on computeDigest. Write Utilities.computeDigest(), not Utilities.computeDigest or computeDigest by itself.
  • Skipping dots between chained calls. Each step needs a dot, like Utilities.computeDigest().
  • Adding spaces where they do not belong. Write Utilities.computeDigest(), not Utilities .computeDigest(), Utilities.computeDigest (), or Utilities . computeDigest().
  • Wrong capitalization. Use Utilities and computeDigest, not utilities or computedigest.

Explore

Related methods

Better Sheets tutorials

No tagged tutorials yet. Fetch Apps Script from the harvest table and this page fills automatically.

Related blog posts

Written guides about Utilities.computeDigest().

Browse the blog