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

Separate decryption from authentication #29

Closed
qgustavor opened this issue Nov 6, 2017 · 0 comments
Closed

Separate decryption from authentication #29

qgustavor opened this issue Nov 6, 2017 · 0 comments

Comments

@qgustavor
Copy link
Owner

Currently the decryption function also do authentication. It's good because it makes using the library simpler. In the other hand it's not possible to do authentication checks on partial downloads, only in fully downloaded files.

So the proposal is separating internally decryption from authentication, keep the current functions doing that they already do and export an authentication function. Clients using partial downloads as a continue download mechanism (like megajs-cli) can verify the download after it ends using that function. They also can offer the option to check the MAC of some already downloaded file, allowing users to check if a file was already downloaded.

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

No branches or pull requests

1 participant