Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new paste with both raw and encrypted options shows the non-decrypted raw file #14

Open
kit-ty-kate opened this issue Oct 25, 2023 · 3 comments

Comments

@kit-ty-kate
Copy link

Tested on https://paste.osau.re/

@dinosaure dinosaure mentioned this issue Nov 23, 2023
@dinosaure
Copy link
Owner

Yes, actually the issue is more complex than what I through at the beginning. When you want to show up a paste in the "raw mode", we just response the content from the database. For obvious reason, we decrypt a paste only on the client side with JavaScript. In the case of the "raw mode", we don't run JavaScript at all (and we are not able to decrypt the content given by the server).

What is possible is to have a tool which "decrypt" the raw response (again, on the client side) and use it, like wget https://paste... | pasteur-decrypt.

@kit-ty-kate
Copy link
Author

why can't we just do the decryption server side when in raw mode?

@dinosaure
Copy link
Owner

why can't we just do the decryption server side when in raw mode?

The server does not have the key 🥲. The key is only generated and available on the client side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants