If that wasn't the case, then "HTML virus" would be a thing:
I send you an HTML file and, if you open it, it read files from your hard drive and uploads them to my server.
It is documented [1] as only being available in secure contexts, which is normally https:// but does include file:// urls. Testing now, it works for me in Chrome, Safari, Brave, and Firefox.
If you put:
in a local HTML file and visit it in your browser, all four browsers alert with "[object CryptoKey]".
It saves a bit of time for your embassy if you need a new passport urgently in another country.
> Safeguard Your Documents! Make two copies of all your travel documents in case of emergency. Leave one copy with a trusted friend or relative at home and carry the other separately from your original documents. To help prevent theft, do not carry your passport in your back pocket, and keep it separate from your money. https://travel.state.gov/content/travel/en/international-tra...
Hmm, am I missing something here? Because I have been getting HTML files exactly like this for billing from my credit card company, for years and years. It's encrypted, and, when opened, accepts a simple password for decryption. No plugins or whatsoever, just pure HTML+Javascript.
Comments (376) 84 threads
Earlier comments>Some browsers disable window.crypto on local files and non-TLS servers
which ones do that?
i.e. if you run the creator with a simple HTTP server on localhost:8080 it'll block the fetch to localhost:8080/foo
If that wasn't the case, then "HTML virus" would be a thing: I send you an HTML file and, if you open it, it read files from your hard drive and uploads them to my server.
Continue this thread — 5 replies
If you put:
in a local HTML file and visit it in your browser, all four browsers alert with "[object CryptoKey]".[1] https://developer.mozilla.org/en-US/docs/Web/API/Crypto/subt...
[2] https://developer.mozilla.org/en-US/docs/Web/Security/Secure...
What use is the picture of your passport? It would be easy to fake.
> Safeguard Your Documents! Make two copies of all your travel documents in case of emergency. Leave one copy with a trusted friend or relative at home and carry the other separately from your original documents. To help prevent theft, do not carry your passport in your back pocket, and keep it separate from your money.
https://travel.state.gov/content/travel/en/international-tra...
And in addition: peace of mind.
Having a copy may not do much from legal perspective, but I'm just less worried if I know it's there.
Thank you for sharing!
All comments shown.
Couldn't load more comments. Check your connection and try again.