Skip to main content

Abstract Class: ContentHasher

Defined in: packages/core/src/application/ports/content-hasher.ts:2

Port for computing content hashes.

Extended by

Constructors

Constructor

new ContentHasher(): ContentHasher

Returns

ContentHasher

Methods

hash()

abstract hash(content): string

Defined in: packages/core/src/application/ports/content-hasher.ts:4

Compute a deterministic hash of the given content. Returns algorithm:hex format.

Parameters

content

string

Returns

string