Create public API for Hash
eheasley opened this issue · comments
Eric Heasley commented
The current plan is for this to look similar to dojo/request
, with a front facing API and support for multiple providers. API functions will call methods on specific providers that actually implement hashing functionality. The API consists of Hasher
functions (sha1
, sha256
, etc), each of which has a create
function that returns a HashAlgorithm
instance that can be incrementally updated. The algorithm-specific classes that implement HashAlgorithm
are not part of the public API.