noledgebin / frontend

NoledgeBin is a zero-knowledge pastebin
https://andinus.unfla.me/noledgebin/
GNU Affero General Public License v3.0
1 stars 1 forks source link

Add support for URLs generated previously #12

Open andinus opened 2 years ago

andinus commented 2 years ago

Adds backwards compatibility. If the paste is not JSON then we assume that the URL was generated before we moved on to using Objects so we create one before proceeding.

andinus commented 2 years ago

91d619c73847e410e71b977d5bf0c424d25c1a06 broke previously generated URLs, this fix adds back support.

andinus commented 2 years ago

https://github.com/noledgebin/frontend/pull/17 breaks it again. We could handle decompression as well to fix the break by earlier commit.

To fix what https://github.com/noledgebin/frontend/pull/17 breaks, we'll have to somehow find out if it was stored with toString() or by the latest method.

andinus commented 2 years ago

Decryption is outside of the blocks, bytes = ..., but yes we can do the bytes.toString thing outside of the blocks, good catch.