I’ve been studying this topic for several months (years?) now, and I still don’t have a clear perspective of how to approach it …
I want to encrypt a file before uploading it to IPFS.
My ideal proccess would be to use the user’s signature to encrypt the file and then transfer the permission access to this file through ownership transfer in an NFT.
- asymetric encryption is kindof out of the table because its trivially broken.
- I would like to do it all in js.
- I guess I may need to regenerate keys to encrypt/decrypt the files before/after each NFT transfer…
Any thoughts out there would be very much appreciated!