Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
RSA Server Controller ( Encryption )
package com.thexcoders.RSA_server.controllers;
import com.thexcoders.RSA_server.EncryptionManager;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
public class ApplicationController {
public String getMessage(){
String message = "TheXCoders";
EncryptionManager manager = new EncryptionManager();
return manager.encrypt(message);
}catch (Exception ignored){}
return null;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment