kalkatfyodor
Ways to hide the URL of an image in Phoenix
When Phoenix can push html on the fly through websockets I thought it could be possible to somewhat obfuscate the image → perhaps send as part of JS canvas or something?
My point is that I want to hide the original URL and perhaps transfer it into JavaScript or something? perhaps there is a specific JavaScript library directly for this purpose?
I don’t want those images to be downloadable, also the quality and dimensions could be low, I don’t care.
The point is to bypass the img html tag or/and perhaps CSS background attribute somehow and still display an image.
The idea is to include even a watermark in the process without using external libraries that generate images like imagemagick etc.
Can Phoenix achieve something like that? Either by itself or by using some additional JS library?
Most Liked
MRdotB
Hello this comic website use a system to hide image. Canvas + webcrypto(SubtleCrypto: encrypt() method - Web APIs | MDN). They never send image directly but a key and a an encrypted image. Then it get decrypted by the js client using aes cbc.
Still it does not prevent screenshoot.
Code to decrypt image
https://github.com/mrdotb/uu3cXJMu/blob/master/aes-cbc-file.js
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









