Skip to content

Commit

Permalink
updated server public key (thx risporce)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterHackz committed Dec 13, 2022
1 parent 8c67add commit 4551cf3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Crypto/PepperCrypto.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const fromHexString = (hexString) => {

module.exports = class {
constructor() {
this.server_public_key = fromHexString("84BCCFFAEAFAC86CEFD3F16E26586ADBF1ED402481FAF3E8B0AC1FE4739B2C28");
this.server_public_key = fromHexString("8434902B6A7D834C222FBEE06BE5950194B70D1B9F2DF140B4A36460900E032E");
this.client_secret_key = new Uint8Array(crypto.randomBytes(32));
this.client_public_key = new Uint8Array(32);
Nacl.lowlevel.crypto_scalarmult_base(this.client_public_key, this.client_secret_key);
Expand Down Expand Up @@ -56,4 +56,4 @@ module.exports = class {
return Nacl.box.open.after(payload, this.server_nonce.bytes(), this.key);
}
}
}
}

0 comments on commit 4551cf3

Please sign in to comment.