Skip to content

Commit

Permalink
Reduce key RSA length to 512 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuSchl committed Oct 3, 2023
1 parent d2c2b5d commit 0317705
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions back_node/api/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ function newClientToken({ userFile, appType, authautifierTag }) {
});
userFile.data.clients.push(clientToken);

const backKeys = new NodeRSA({ b: 1024 });
const backKeys = new NodeRSA({ b: 512 });
const backPublicKey = backKeys.exportKey("public");
const backPrivateKey = backKeys.exportKey("private");
const clientKeys = new NodeRSA({ b: 1024 });
const clientKeys = new NodeRSA({ b: 512 });
const clientPublicKey = clientKeys.exportKey("public");
const clientPrivateKey = clientKeys.exportKey("private");

Expand Down
2 changes: 1 addition & 1 deletion back_node/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: "3"
services:
karassistant-back:
#build: .
image: codyisthesenate/karassistant-back:1.7.0.1
image: codyisthesenate/karassistant-back:1.7.1
restart: always
container_name: karassistant-back-${ENV_NAME}
volumes:
Expand Down
2 changes: 1 addition & 1 deletion back_node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "karassistantback",
"version": "1.7.0.1",
"version": "1.7.1",
"description": "Back end for karassistant",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 0317705

Please sign in to comment.