import * as crypto from 'crypto'; export function sha1(input: string) { return crypto .createHash("sha1") .update(input) .digest("hex"); }