News for hackers. Stuff that matters.
Re:Show HN: Print a WiFi Login Card by 40four on Sunday July 11, 2021 @08:06PM (#27805583)
I wouldn’t ask if it wasn’t the top comment, on the current #1 front page story, but

Can someone please explain this command, and why it is presumably given as a criticism of this submission?

Re:Show HN: Print a WiFi Login Card by MobiusHorizons on Monday July 12, 2021 @02:56AM (#27807800)
There is an inherent skepticism about typing your password into a web form even/especially if it says it is not sent to the server. My read of this comment was on the one hand telling security conscious people how to achieve the same goal in a way that does not leave the computer, and on the other hand putting a lower bound on the complexity of the value provided by the site.
Re:Show HN: Print a WiFi Login Card by darkwater on Monday July 12, 2021 @03:46AM (#27808033)
https://github.com/fukuchi/libqrencode

This doesn't look "simpler" after a quick look, and it's a hard dependency of the GP solution.

(I completely agree on the local-only guarantee that this one provides, though)

Re:Show HN: Print a WiFi Login Card by alias_neo on Monday July 12, 2021 @04:02PM (#27814401)
I think the point of simplicity here is that you apt/yum/yay/whatever install qrencode and then go to town.

You're on your own machine, you know the exact spec used to generate the QR, and while you're at it, you can use the same tool to generate TOTP QR codes and WireGuard configurations and a bunch of other things like links to websites or automations for Tasker (et al).

The world is your oyster when you know what and how the "magic" works, and while you're at it, you aren't risking pasting your WiFi passwords into some random website.

Re:Show HN: Print a WiFi Login Card by sha256kira on Sunday July 11, 2021 @08:21PM (#27805652)
I didnt read it as a criticism necessarily. Qrencode is just awesome. I like that someone made a UI for this though so non-ghost-in-the-shell folks can get down with this awesome use of QR code dopeness :^)
Re:Show HN: Print a WiFi Login Card by tomc1985 on Sunday July 11, 2021 @08:33PM (#27805706)
As other comments have pointed out, the tech stack used here is excessive for what it is trying to do. The author has said it was a project to learn some specific technologies. There is a lot of mirth for overcomplicated contraptions mucking up otherwise simple tasks (and rightfully so, IMO), hence the retort of a one-line console command.
Re:Show HN: Print a WiFi Login Card by SilverRed on Sunday July 11, 2021 @09:32PM (#27806009)
It's not excessive. The linked post is way easier to use and doesn't require a terminal or installing packages manually. I wouldn't even know how to get the cli version to work on windows.

The only downside IMO is that you are entering your wifi details in to an untrusted website.

Re:Show HN: Print a WiFi Login Card by tomc1985 on Sunday July 11, 2021 @09:46PM (#27806095)
The command-line app is effectively eternal as long as it's mirrored and the runtime interface doesn't change. Can we count on this link to still be there when we need it?

Do you know how long most "Show HN" links still work after a year or two?

Re:Show HN: Print a WiFi Login Card by dataflow on Sunday July 11, 2021 @10:00PM (#27806164)
You can just fork/clone/whatever it, it's right there.
Re:Show HN: Print a WiFi Login Card by tomc1985 on Sunday July 11, 2021 @10:16PM (#27806236)
Ok, great. If it goes down now one has to host it or remember to start it via the command-line. So we're back to square one...
Re:Show HN: Print a WiFi Login Card by fouc on Sunday July 11, 2021 @11:45PM (#27806775)
It's literally a webpage with some javascript, so if you save it along with the asset files, you can just open the page in browser from your filesystem, no need to specially host it or start anything.

But yes, I agree running a command like qrencode from terminal is easier in the long run.

Re:Show HN: Print a WiFi Login Card by ipaddr on Monday July 12, 2021 @12:28AM (#27807051)
Saving a webpage and expecting your browser to render this the same way in a few years is only possible if you are saving the browser version with it.

The command line tool will have a longer life

Re:Show HN: Print a WiFi Login Card by SilverRed on Monday July 12, 2021 @01:50AM (#27807454)
You could just use google to find the same thing in a few years. The project is so simple I could replicate it and have it hosted in a few hours.
Re:Show HN: Print a WiFi Login Card by dolmen on Monday July 12, 2021 @04:31AM (#27808244)
"so simple" ... "in a few hours"

The project is so simple that it would be easier to rewrite it from scratch in that time frame. But the qrencode CLI allows to just avoid that.

Re:Show HN: Print a WiFi Login Card by tomc1985 on Monday July 12, 2021 @01:16AM (#27807272)
Does that work for node.js apps?
Re:Show HN: Print a WiFi Login Card by fouc on Monday July 12, 2021 @02:27AM (#27807660)
Yes, but it depends if the node.js app has the option of generating a fully static site. But it will also need to generate relative links for the browser to be able to directlyy load the site
Re:Show HN: Print a WiFi Login Card by kzrdude on Monday July 12, 2021 @04:40AM (#27808304)
I don't think we should always see a reply as criticism. It makes the discussion unnecessarily contentious.

Even this reply - this is intended as conversation.

Re:Show HN: Print a WiFi Login Card by enjoyyourlife on Sunday July 11, 2021 @08:08PM (#27805593)
The site requires you to put in your WiFi Network and Password even though it did not have to. (However nothing is actually sent to the server)
Re:Show HN: Print a WiFi Login Card by playpause on Sunday July 11, 2021 @11:25PM (#27806632)
> even though it did not have to

How could it work if it didn’t?

Re:Show HN: Print a WiFi Login Card by mikkelam on Monday July 12, 2021 @01:44AM (#27807428)
By generating the QR code locally via JS. You can check the source code https://github.com/bndw/wifi-card/blob/master/package.json#L...
Re:Show HN: Print a WiFi Login Card by playpause on Monday July 12, 2021 @05:50AM (#27808670)
I’m not sure what you think I was asking the previous commenter. This makes no sense as a reply.
Re:Show HN: Print a WiFi Login Card by mikkelam on Thursday July 15, 2021 @04:10AM (#27842455)
I thought you were asking the parent how the QR generation worked, if it didn't send something to a server.
Re:Show HN: Print a WiFi Login Card by mekkkkkk on Monday July 12, 2021 @05:50AM (#27808671)
But... that's exactly what it does though?