r0x0r / pywebview

Build GUI for your Python program with JavaScript, HTML, and CSS
https://pywebview.flowrl.com
BSD 3-Clause "New" or "Revised" License
4.62k stars 537 forks source link

Is there a way to hide this #1426

Closed bailaoshijiadao closed 3 weeks ago

bailaoshijiadao commented 2 months ago

Specification

Description

Describe your issue in details. Provide a stand-alone code example that would demonstrate the problem.

Practicalities

They can get the HTML source code through this.

QQ图片20240702110547

Xanderplayz16 commented 2 months ago

No, unless you load the HTML in manually. If you store any secrets in the Javascript, instead put those in the Python code a and make a function that does whatever you do with the secrets, and then compile the Python script. You could even encrypt the secrets and decode them at runtime, so it doesn't appear like anything if you use strings (unix command).

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] commented 3 weeks ago

The message to post on the issue when closing it. If none provided, will not comment when closing an issue.