UNPKG
@chassisjs/hermes
Version:
latest (1.0.0-alpha.16)
1.0.0-alpha.16
1.0.0-alpha.15
1.0.0-alpha.14
1.0.0-alpha.13
1.0.0-alpha.12
Production-Ready TypeScript Outbox Pattern
docs.hermesjs.tech
chassisjs/hermes
@chassisjs/hermes
/
lib
/
core
/
typing
/
Sha256Of.js
10 lines
•
305 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
import
crypto
from
'node:crypto'
;
const
createSha256From
= (
fromValues
) => {
const
hash = crypto.
createHash
(
'sha256'
);
for
(
const
value
of
fromValues) { hash.
update
(value.
toString
()); }
return
hash.
digest
(
'hex'
); };
export
{ createSha256From };
//# sourceMappingURL=Sha256Of.js.map