edgeport - v1.0.3
    Preparing search index...

    Function md5

    • Computes the MD5 digest of a byte buffer (RFC 1321).

      WebCrypto does not offer MD5, so this is a from-scratch implementation, verified against the RFC 1321 test suite. Used for the common algorithm=MD5 SIP digest path.

      Parameters

      • input: Uint8Array

        The bytes to hash.

      Returns Uint8Array

      The 16-byte MD5 digest.

      1.0.3

      import { md5 } from 'edgeport/sip';

      md5(new TextEncoder().encode('abc')).length; // 16