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

Special characters not handled in PSK #6

Open
glynhudson opened this issue Nov 17, 2016 · 7 comments
Open

Special characters not handled in PSK #6

glynhudson opened this issue Nov 17, 2016 · 7 comments
Assignees

Comments

@glynhudson
Copy link
Member

https://community.openenergymonitor.org/t/connecting-to-wifi-some-characters-not-supported-in-network-password/2226

@glynhudson
Copy link
Member Author

Possible solution:

<?php


$ssid = "my-ssid";
$passphrase = "sdh4%71$";

$psk = hash_pbkdf2("sha1",$passphrase,$ssid, 4096, 64);

$out = "network={\n";
$out .= "\tssid=\"$ssid\"\n";
$out .= "\t#psk=\"$passphrase\"\n";
$out .= "\tpsk=$psk\n";
$out .= "}\n";

print $out;

@glynhudson
Copy link
Member Author

@glynhudson
Copy link
Member Author

Fixed by #13

@glynhudson
Copy link
Member Author

Hi @emrysr,

I've had reports of special characters still not being allowed in WiFi PSK, any chance you could check this again? https://community.openenergymonitor.org/t/emoncms-wifi-module-special-characters-not-supported-in-network-password/2226/7

@glynhudson
Copy link
Member Author

openenergymonitor/emonpi#118

One of the Wifi hotspots near me has a single quote in it's name.

It is basically:
"<name>'s wifi"

Due to the single quote I get Javascript errors when trying to save wifi settings.

@lachiemurray
Copy link
Contributor

lachiemurray commented Nov 5, 2020

I believe this fixes the issue: #36. Would you be able to review @emrysr @glynhudson ?

Thank you!

@glynhudson
Copy link
Member Author

Apostrophes are still not supported

2022-03-04_16-15

Possibly related to
raspberrypi/linux#2918

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

No branches or pull requests

3 participants