Add API key generator and Zotero script builder
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import { randomBytes } from "node:crypto";
|
||||
|
||||
export const PDF_KEY_PREFIX = "sbpdf_";
|
||||
|
||||
export function generatePdfKey(): string {
|
||||
return PDF_KEY_PREFIX + randomBytes(24).toString("base64url");
|
||||
}
|
||||
Reference in New Issue
Block a user