public IActionResult GetRSAKeys() { var result = _rsaService.GetRandomRSAKeys(); return(Ok(result)); }
public async Task Connected() { var keys = _rsaService.GetRandomRSAKeys(); await Clients.Caller.SendAsync("SendKeys", keys.PublicKey, keys.PrivateKey); }