browserutils / kooky

Go code to read cookies from browser cookie stores.
MIT License
204 stars 41 forks source link

Delay value decryption on chrome #56

Closed j178 closed 1 year ago

j178 commented 1 year ago

This pull request adds a new ValueFilterFunc to kooky. If there is no filter regarding Value in the cookie, it is unnecessary to decrypt its value. We checks if there is a ValueFilterFunc in the filters before performing the decryption. After filtering is complete, the Value field is populated with the result of the decrypt.

j178 commented 1 year ago

But there is a risk this change may break code that using custom filter without wrapping it in ValueFilterFunc, it always gets empty value.