Skip to content

Commit

Permalink
rotation
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharyakir committed Mar 12, 2024
1 parent c2fdd18 commit aa88b0e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions script/generate-private-key.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const nacl = require("tweetnacl");

const keypair = nacl.sign.keyPair();
const privKey = Buffer.from(keypair.secretKey).toString("base64");
const pubKey = Buffer.from(keypair.publicKey).toString("base64");

console.log(`Private key: ${privKey}`);
console.log(`Public key: ${pubKey}`);

0 comments on commit aa88b0e

Please sign in to comment.