mirror of
https://github.com/parabirb/freeremote-server.git
synced 2026-01-07 07:48:45 -05:00
17 lines
390 B
JavaScript
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)}`); |