Calling this "finalizes" the tlsh object, which means the actual hash value for all the content added to it is computed. This should be the the last call after all _update_s.

tlsh_finalize(x, force = FALSE)

Arguments

x

a tlsh object

force

if TRUE an attempt will be made to forego minimum content-length and content-body requirements when computing the hash. Not recommended. Default: FALSE

Value

tlsh object

Examples

# NOT RUN {
doc1 <- as.character(xml2::read_html(system.file("extdat", "index.html", package="tlsh")))

tlsh() %>%
  tlsh_update(doc1) %>%
  tlsh_finalize() -> x

tlsh_hash(x)

x
# }