News for hackers. Stuff that matters.
Re:Show HN: WebRTC signalling data using QR codes by hamandcheese on Friday October 12, 2018 @12:15PM (#18202424)
Why does the QR code constantly change?
Re:Show HN: WebRTC signalling data using QR codes by AquiGorka on Friday October 12, 2018 @12:17PM (#18202444)
I wasn't able to get all the info into one QR code, so I used a series of them (looping) to send all the data. I figure I can use this approach to send files too.
Re:Show HN: WebRTC signalling data using QR codes by ggerganov on Friday October 12, 2018 @12:49PM (#18202730)
What is the capacity of those QR codes?

When I played with WebRTC, I was able to pack the relevant SDP data to just 80 bytes:

- 1 Type of the SDP - Offer or Answer

- 1 Packet size in bytes (not including ECC bytes)

- 4 IP address of the transmitting peer

- 2 Network port that will be used for the communication

- 32 SHA-256 fingerprint of the session data

- 40 ICE Credentials - 16 bytes username + 24 bytes password

Re:Show HN: WebRTC signalling data using QR codes by AquiGorka on Friday October 12, 2018 @01:50PM (#18203242)
I found a similar limit (although I still want to try with different options for the qr codes). I send the data as is by splitting it into smaller segments and looping through them with more than one qr code.
Re:Show HN: WebRTC signalling data using QR codes by cjbprime on Friday October 12, 2018 @01:47PM (#18203214)
> I figure I can use this approach to send files too.

Or, you could send the files over WebRTC datachannels after establishing the connection!

Re:Show HN: WebRTC signalling data using QR codes by AquiGorka on Friday October 12, 2018 @02:00PM (#18203317)
For sure, I am just interested in pushing this experiment and see how far it can go.