Options for computeChecksum

interface ChecksumOptions {
    algorithm?:
        | "sha1"
        | "sha256"
        | "sha512"
        | "md5";
    hash?: Hash;
    hashOptions?: HashOptions;
    stripContent?: boolean;
    stripOptions?: StripOptions;
}

Properties

algorithm?:
    | "sha1"
    | "sha256"
    | "sha512"
    | "md5"

Checksum algorithm to use.

'sha1'
hash?: Hash

Existing crypto#Hash instance to use.

undefined
hashOptions?: HashOptions

crypto#HashOptions passed to hash. Only used if :hash is undefined.

undefined
stripContent?: boolean

Strip any formatting prior to computing hash.

false
stripOptions?: StripOptions

Use stripFormatting prior to hashing content. Requires :stripFormatting to be true.

undefined