import * as node_crypto from 'node:crypto'
async function get_checksum() {
const hash = node_crypto.createHash('sha256')
using file = await Deno.open(this.#filepath)
for await (const chunk of file.readable) {
hash.update(chunk)
}
return hash.digest('hex')
}
import * as node_crypto from 'node:crypto'
async function get_checksum() {
const hash = node_crypto.createHash('sha256')
using file = await Deno.open(this.#filepath)
for await (const chunk of file.readable) {
hash.update(chunk)
}
return hash.digest('hex')
}