UNPKG

@giancarl021/cli-core-vault-extension

Version:

Plain and secure storage extension for the @giancarl021/cli-core npm package

11 lines (8 loc) 220 B
import { createHash } from 'node:crypto'; /** * Generate a SHA-256 hash of the given input string. */ function hash(input) { return createHash('sha256').update(input).digest('hex'); } export { hash as default };