UNPKG

xsolla

Version:

A Node.js client for working with the Xsolla Merchant API

7 lines (6 loc) 193 B
import Crypto from 'crypto'; export default (algorithm: string, string: string) => { const sum = Crypto.createHash(algorithm); sum.update(string); return sum.digest('hex'); }