Spaces:
Sleeping
Sleeping
Download src/lib/computeSecretFingerprint.ts from Joshleeave/AIComicFactory: direct link, hf CLI and curl.
- Browser
- Download file 233 Bytes
-
https://huggingface.co/spaces/Joshleeave/AIComicFactory/resolve/main/src/lib/computeSecretFingerprint.ts
- Command line
-
hf download hf://spaces/Joshleeave/AIComicFactory/src/lib/computeSecretFingerprint.ts
-
curl -L -o computeSecretFingerprint.ts https://huggingface.co/spaces/Joshleeave/AIComicFactory/resolve/main/src/lib/computeSecretFingerprint.ts
233 Bytes
| import { computeSha256 } from "./computeSha256" | |
| const secretFingerprint = `${process.env.SECRET_FINGERPRINT || ""}` | |
| export function computeSecretFingerprint(input: string) { | |
| return computeSha256(`${secretFingerprint}_${input}`) | |
| } |