Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Any way to turn off encryption? #99

Closed
mattfordham opened this issue May 12, 2015 · 4 comments
Closed

Any way to turn off encryption? #99

mattfordham opened this issue May 12, 2015 · 4 comments

Comments

@mattfordham
Copy link

For the sake of some tests I am writing, I am needing to turn off encryption of cookies in my testing environment. Is there an easy/recommended way to make this happen?

Thanks!

@seanmonstar
Copy link
Contributor

There is not. You can use .utils.decode to decode them in your tests...

@mattfordham
Copy link
Author

Yeah, I found that too, but as I'm testing with CasperJS (which is not Node), I havn't found a way to decode in the test context. Any creative ideas? ;)

@seanmonstar
Copy link
Contributor

That's all. If you use the same key, you could duplicate what decode is doing in whatever Casper provides, and decrypt with the key.

@mattfordham
Copy link
Author

Thanks for the help!

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

No branches or pull requests

2 participants