//public async Task<IActionResult> OnPostAsync() public void OnPost() { Key = _service.GetKeyContent(KeyIdentifier); // encrypt/decrypt Encrypted = _service.Encrypt(KeyIdentifier, Input); Decrypted = _service.Decrypt(KeyIdentifier, Encrypted); }