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

Encrypted tickets #19

Open
wavexx opened this issue Dec 16, 2014 · 1 comment
Open

Encrypted tickets #19

wavexx opened this issue Dec 16, 2014 · 1 comment

Comments

@wavexx
Copy link
Member

wavexx commented Dec 16, 2014

It would be very nice to use symmetric encryption for password-protected tickets. When the file is received, we could use a symmetric block cypher mode such as aes-xts to encrypt the file backed-up by the ticket. We could use the known password hash for validation instead of validating the content, so there's nothing "special" required to support it (the cypher is totally invisible to the user).

I was looking at PHP libraries, but I couldn't find any library that offers a convenient (seekable!) API to perform aes-xts on a file. I'm reluctant to use external tools, as this would complicate furthermore the setup and/or reduce the chance that this would be a standard feature in a DL installation, and not something that would be easily skipped.

@wavexx
Copy link
Member Author

wavexx commented Jul 3, 2017

After some discussion, there's some extra consideration to be done:

  • We should use an AEAD scheme for the ticket content (AES-GCM)
  • We should validate at least the filename and file size in the scheme
  • Should the ticket ID guarantee to always point to the same content?

The last is a tough question:

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

1 participant