Example #1
0
 public ActionResult <string> GetSha256([FromQuery] string message)
 {
     return(message is null
         ? BadRequest("Bad Request")
         : (ActionResult <string>)Ok(CryptoServices.Hasher(message, new SHA256Managed())));
 }