Frida Docs Unified
    Preparing search index...

    Provides access to checksumming algorithms.

    Index

    Constructors

    • Creates an instance used to compute a checksum for a stream of data. Starts out in "open" state where data is fed in through one or more calls to update(). Once done, getString() or getDigest() is called to obtain the computed checksum. This also moves the instance to "closed" state, which means update() may no longer be called. (Create a new instance to compute a checksum for subsequent data.)

      Parameters

      Returns Checksum

    Methods

    • Computes the checksum of the specified data. Returns the checksum as an all-lowercase hexadecimal string. The length of the digest depends on the type of checksum.

      Parameters

      • type: ChecksumType

        The desired type of checksum.

      • data: string | ArrayBuffer | number[]

        The data to compute the checksum of.

      Returns string

    • Gets the digest as a raw binary vector. The size of the digest depends on the type of checksum.

      Once this method has been called the checksum can no longer be updated with update().

      Returns ArrayBuffer

    • Gets the digest as an all-lowercase hexadecimal string. The length of the digest depends on the type of checksum.

      Once this method has been called the checksum can no longer be updated with update().

      Returns string

    • Feeds data into the checksum instance. The checksum must still be open, i.e. getString() or getDigest() must not have been called yet.

      Parameters

      • data: string | ArrayBuffer | number[]

        The data used to compute the checksum.

      Returns Checksum