Skip to content

SecKey length #24

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

Closed
bkniffler opened this issue Apr 26, 2017 · 5 comments
Closed

SecKey length #24

bkniffler opened this issue Apr 26, 2017 · 5 comments

Comments

@bkniffler
Copy link

Hey, currently the SecKey length is fixed to 21 chars (https://github.com/arduino-libraries/ArduinoHttpClient/blob/master/src/WebSocketClient.cpp#L39), but I've seen some examples (f.e. wikipedia article) using 24 chars. There doesn't seem to be a specification about the length, but I've stumbled upon libraries that expect the length of 24 chars (https://www.npmjs.com/package/uws).

So, I'd suggest to make the SecKey length overwritable and maybe change the default length to 24 characters.

@bkniffler
Copy link
Author

@sandeepmistry
Copy link

@bkniffler

So, I'd suggest to make the SecKey length overwritable and maybe change the default length to 24 characters.

I'm ok with changing the default length to 24 characters, could you please submit a pull request for this?

At this point, I don't think we need an option to make it configurable ...

@bkniffler
Copy link
Author

Sorry, I don't currently have the time/urgence to do it since we're reconsidering using arduino for our use-case. I will still leave this open in case someone else wants to tackle this!

@sandeepmistry
Copy link

PR #26 submitted for this.

@sandeepmistry
Copy link

Closed via #26.

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