Home / Function/ createHash() — supabase Function Reference

createHash() — supabase Function Reference

Architecture documentation for the createHash() function in helpers.mdx.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  ba597464_635f_07d6_76dd_3978e7d83745["createHash()"]
  7920f0ed_264a_f954_6f8a_ec73ded46618["processMdx()"]
  7920f0ed_264a_f954_6f8a_ec73ded46618 -->|calls| ba597464_635f_07d6_76dd_3978e7d83745
  c6ba9fcb_19c2_0847_332c_187b52d1c2d6["processMdx()"]
  c6ba9fcb_19c2_0847_332c_187b52d1c2d6 -->|calls| ba597464_635f_07d6_76dd_3978e7d83745
  style ba597464_635f_07d6_76dd_3978e7d83745 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/docs/scripts/helpers.mdx.ts lines 23–29

async function createHash(content: string): Promise<string> {
  const encoder = new TextEncoder()
  const data = encoder.encode(content)
  const hashBuffer = await crypto.subtle.digest('SHA-256', data)
  const hashArray = Array.from(new Uint8Array(hashBuffer))
  return hashArray.map((byte) => byte.toString(16).padStart(2, '0')).join('')
}

Subdomains

Frequently Asked Questions

What does createHash() do?
createHash() is a function in the supabase codebase.
What calls createHash()?
createHash() is called by 2 function(s): processMdx, processMdx.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free