public string AesDecrypt(DecryptInput input) { return(new EncryptHelper(input.Key, input.IV).Decrypt(input.DecryptString)); }
public IActionResult DecryptPGP([FromForm] DecryptInput parametter) { string data = PGPEncryption.PGPEncryption.Decrypt(parametter.EncryptedMessage, parametter.PrivateKey, parametter.Passphrase); return(Json(data)); }