mwg API
    Preparing search index...

    Function sha256Hex

    • Lower-case hex SHA-256 of some bytes, through crypto.subtle.

      Parameters

      • bytes: Uint8Array

      Returns Promise<string>

      import { sha256Hex } from '@datamoc/mwg/mwl';

      console.log((await sha256Hex(new Uint8Array(0))).slice(0, 8)); // 'e3b0c442'