ai-story-teller / src /lib /computeSecretFingerprint.ts
ruslanmv's picture
First commit
5f663a9
raw
history blame
230 Bytes
import { computeSha256 } from "./computeSha256"
const secretFingerprint = `${process.env.FINGERPRINT_KEY || ""}`
export function computeSecretFingerprint(input: string) {
return computeSha256(`${secretFingerprint}_${input}`)
}