cal.pub0.org/lib/sha256.ts

10 lines
188 B
TypeScript
Raw Normal View History

const crypto = require('crypto');
function sha256(input: string): string {
return crypto
.createHash('sha256')
.update(input)
.digest("hex");
}
export default sha256;