Open IpsmLorem opened 9 years ago
Nice idea, I'll add that later.
To make things easier to implement, maybe consider a picture as a single picture album. Then everything is an album with a unique URL. Maybe only the creator of the album may add pictures later. When creating an album a token is stored in the localstorage to authenticate the author and let him add pictures of change the lifetime.
It's not possible that way. Links must contain password for each picture, format is /#/id!pass. So albums probably will be like /#/id1!pass1/id2!pass2/id3!pass3/... or maybe something else, that way you can make albums with any pictures you want, even if you are not uploader. I'll think about it.
Maybe like https://img.bi/#/[picId]![Password] for a single picture and https://img.bi/#/a/[albumId]![wholeAlbumPassword] for album. Maybe only the autor could add pictures later (similar system used to authenticate the remove command by rmpass in sessionStorage)
Password used for encryption and decryption, that way you'll need re-encrypt all pictures and upload them again if you want to add something to album. Rmpass used for authentication for removing a cipher text from server, it has no deal with the picture itself.
Rmpass (or similare system) could be used to authenticate not only a removal but an update too. What about adding new pictures with the same key than previous pics in the album ? You will not have to re-encrypt all past pic then.
It would be neat to have album (photo grouping) support.
As a user I can upload several pictures, in several times if needed I order to have a unique URL to share and access the whole album