calcom/lib/sha256.ts
2021-06-06 01:29:27 +02:00

10 lines
No EOL
188 B
TypeScript

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