HashingContext

    Context to compute cryptographic hashes over multiple iterations.

    The HashingContext class provides an interface for computing cryptographic hashes over multiple iterations. This is useful for example when computing hashes of big files (so you don’t have to load them all in memory), network streams, and data streams in general (so you don’t have to hold buffers).

    Note: Not available in HTML5 exports.

    enum HashType:

    • HASH_MD5 = 0 —- Hashing algorithm: MD5.
    • HASH_SHA256 = 2 —- Hashing algorithm: SHA-256.
    • finish ( )

    Starts a new hash computation of the given (e.g. HASH_SHA256 to start computation of a SHA-256).


    Updates the computation with the given chunk of data.