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

Encryption algorithm seems incompatible with other language versions of the pusher library #97

Open
jersak opened this issue Feb 4, 2025 · 0 comments

Comments

@jersak
Copy link

jersak commented Feb 4, 2025

We've been using pusher for years now, with our PHP backend sending events that are consumed by our JS frontend and that works very well.

However we're now implementing a new pusher based solution where the backend is .net and the frontend is the same JS frontend, and we were surprised when the decryption on the frontend failed. After some digging it seems to be caused due to different algorithms being used to generate the shared secret.

It looks like the .net library uses HMAC-SHA256 where as the other side uses simple SHA256, making it incompatible. For now we're forking the .net library to adjust for that, but if possible, consider standardizing the algorithm used across different libraries.

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