freeremote-server/generateKeys.js
2025-04-11 14:52:26 -05:00

17 lines
390 B
JavaScript

import config from "./config.js";
import { generateKey } from "openpgp";
const { publicKey, privateKey } = await generateKey({
curve: "ed25519",
userIDs: [
{
name: config.clubName,
email: config.clubEmail
}
],
format: "armored"
});
console.log(`Public key: ${JSON.stringify(publicKey)}
Private key: ${JSON.stringify(privateKey)}`);