ai-tube / src /lib /utils /computeSecretFingerprint.ts
jbilcke's picture
working to improve the clap format
f42b4a1
raw
history blame
230 Bytes
import { computeSha256 } from "./computeSha256"
const secretFingerprint = `${process.env.FINGERPRINT_KEY || ""}`
export function computeSecretFingerprint(input: string) {
return computeSha256(`${secretFingerprint}_${input}`)
}