Skip to content

Commit 6c1a44e

Browse files
committed
key ep
1 parent 0e9cbc9 commit 6c1a44e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rsa-backend/src/main/java/com/example/rsa/controller/KeyController.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,10 @@ public class KeyController {
2121
public BigInteger publicKey() {
2222
return rsaEncryptionService.getE();
2323
}
24+
25+
@Operation(summary = "Get private key")
26+
@GetMapping("/private")
27+
public BigInteger privateKey() {
28+
return rsaEncryptionService.getD();
29+
}
2430
}

0 commit comments

Comments
 (0)