formcycle 8.3.6 - JavaScript for forms
    Preparing search index...

    Interface Hash

    Utility functions for working with hashes or checksums.

    interface Hash {
        incrementalMd5ArrayBuffer: () => IncrementalHash<ArrayBuffer>;
        md5Blob: (blob: Blob) => Promise<string>;
    }
    Index

    Properties

    incrementalMd5ArrayBuffer: () => IncrementalHash<ArrayBuffer>

    Creates a new object for building an MD5 checksum incrementally. You can add data as it arrives, then obtain the final MD5 sum when all the data was processed. This avoids having to read the data into memory all at once.

    md5Blob: (blob: Blob) => Promise<string>

    Computes the MD5 checksum of the given blob.

    Type declaration

      • (blob: Blob): Promise<string>
      • Parameters

        • blob: Blob

          Blob to process.

        Returns Promise<string>

        The MD5 checksum of the given blob.