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

Cookie Recipe Ingredients #7

Open
elipoultorak opened this issue Jul 3, 2016 · 2 comments
Open

Cookie Recipe Ingredients #7

elipoultorak opened this issue Jul 3, 2016 · 2 comments

Comments

@elipoultorak
Copy link

I'm trying to understand how AEAD works. In the cookie recipe, why don't you use crypto_secretbox? From what I understand, it does the job:

We want to store data in a cookie such that user cannot read nor alter its contents.

Thanks

@paragonie-scott
Copy link
Member

why don't you use crypto_secretbox?

No reason. You totally could.

@elipoultorak
Copy link
Author

All right, I started thinking that crypto_secretbox only provided encryption, not authentication. Obviously, I was wrong.
Thanks for clarifying.

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