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

Connect to WiFi API endpoint - Additional information #68

Closed
thorleifjacobsen opened this issue Dec 14, 2020 · 2 comments
Closed

Connect to WiFi API endpoint - Additional information #68

thorleifjacobsen opened this issue Dec 14, 2020 · 2 comments
Assignees
Labels

Comments

@thorleifjacobsen
Copy link

https://rithvikvibhu.github.io/GHLocalApi/#tag/Wifi

the "connect_wifi" does not require the BSSID nor the signal_level.

The password is encrypted using:

let cleartext = "PassWord";
let publicKey = "PUBLICKEY_FROM_EUREKA_INFO";
publicKey = "-----BEGIN RSA PUBLIC KEY-----\n"+publicKey+"\n-----END RSA PUBLIC KEY-----"
const encryptedData = crypto.publicEncrypt({
  key: publicKey,
  padding: crypto.constants.RSA_PKCS1_PADDING,
  oaepHash: "sha256",
}, Buffer.from(cleartext));

console.log(encryptedData.toString("base64"));```
@rithvikvibhu
Copy link
Owner

Ahh that makes sense. Thanks @thorleifjaocbsen! Will add it to the docs.

Btw how'd you find this?

@rithvikvibhu rithvikvibhu self-assigned this Dec 27, 2020
@stale
Copy link

stale bot commented Jan 10, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 participants