UNPKG

simpay-typescript-api

Version:
11 lines 284 B
import { createHash } from 'node:crypto'; function sha256(text) { return hash('sha256', text); } function hash(algorithm, text) { const hash = createHash(algorithm); hash.update(text); return hash.digest('hex'); } export { sha256 }; //# sourceMappingURL=hashing.js.map