There was an error while loading. Please reload this page.
1 parent 0e9cbc9 commit 6c1a44eCopy full SHA for 6c1a44e
rsa-backend/src/main/java/com/example/rsa/controller/KeyController.java
@@ -21,4 +21,10 @@ public class KeyController {
21
public BigInteger publicKey() {
22
return rsaEncryptionService.getE();
23
}
24
+
25
+ @Operation(summary = "Get private key")
26
+ @GetMapping("/private")
27
+ public BigInteger privateKey() {
28
+ return rsaEncryptionService.getD();
29
+ }
30
0 commit comments