Better HN
topnewbestaskshowjobs
Log inSign up

floatboth

5,763 karma · joined Oct 27, 2011 (15y ago) · 2,893 submissions

this website sucks
Submissions

comment 7y ago · link · parent

bcrypt is a password hashing algorithm. It's totally fine, but newer better ones exist (scrypt and now Argon2). libsodium provides them.

comment 7y ago · link · parent

> Isn't it safer to learn and understand how to use, say, AES algorithm

No.

AES by itself is just a function that provides symmetric encryption of one fixed size block. You can't do anything with "just AES". Bad libraries will throw a choice of block cipher modes at you, and tell you to pick CBC or CTR. Then you won't even realize that you have no integrity checking at all on these messages. If you do, you'll maybe add an HMAC, and end up with encrypt-then-MAC or MAC-then-encrypt and ughhhh.

Just use a high level library that provides idiot-proof APIs with descriptive names like "secret box".

> If I am to verify if any of those ports is a proper one probably I would have to really become a crypto expert.

These things aren't ports!!! They're simple FFI bindings. Take a quick look at the code (heck, the readmes say things like "Java Native Access" already, this should ring a bell).

comment 7y ago · link · parent

    crypto_box_easy(ciphertext, MESSAGE, MESSAGE_LEN, nonce, bob_publickey, alice_secretkey)
Where do you see a place for parameters?

Even if there was some choice, it would've been a choice between known good options, no footguns.

comment 7y ago · link · parent

Bollocks, no one has a large enough quantum computer yet. What is known to exist is just small numbers of qubits, and they are extremely expensive to run.

Key sizes are an attractive subject for bikeshedding. You can endlessly argue about whether better performance or stronger theoretical brute force resistance (e.g. billion years vs million years to crack) is more important.

And yet, it is a silly thing to care about. Read the article, it does not even mention this topic really.

It's all about implementation vulnerabilities, and how RSA is fundamentally resistant to correct implementation (requires padding, etc)

comment 7y ago · link · parent

Yes. Stop entirely. Developers in fact MUST NOT use ANY crypto primitives directly. "If you're typing the letters A-E-S into your code, you're doing it wrong." You WILL do something subtly (or not so subtly) wrong and it won't be secure.

Use high-level constructs designed and peer-reviewed by cryptographers who know what they're doing.

Basically: use libsodium.

comment 7y ago · link · parent

https://github.com/antoyo/relm

comment 7y ago · link · parent

You've seen the Type C - 3.5mm headphone dongles right? They're so tiny and cheap.. did you think they could be active? :)

comment 7y ago · link · parent

I've been using OpenWRT on C7v2 for what feels like many years, never had a problem with 5ghz

comment 7y ago · link · parent

C7 rev 2 works flawlessly with OpenWRT

comment 7y ago · link · parent

> For example, currently on x86-64, only the lower 48 bits of a pointer are actually used. The other 16 bits could carefully be used for other information

Well, you can't dereference these fat pointers directly on amd64, you have to remove the tag.

aarch64 actually has a Top Byte Ignore flag though :)

comment 7y ago · link · parent

Canonical needs to put USB drives with Ubuntu into retail stores then :D

comment 7y ago · link · parent

MS is actually walking back from lockdown. New Qualcomm ARM laptops allow you to disable secure boot exactly like on old x86 ones.

They don't need to do this anymore, pushing Windows is not their priority, they want to get people on Azure, Office 365 and Xbox live. Everything is about services these days.

comment 7y ago · link · parent

In some fields (3D modeling, PCB CAD) FOSS software could be considered mainstream, in others (audio, photography, vector graphics) just really good.

Yes, unfortunately, architecture CAD and BIM are not among those fields :(

comment 7y ago · link · parent

AOSP derived ROMs without gapps are pretty much "nothing Google". Unless you count AOSP itself as "Google", which it kind of is I guess, but it's not Google proprietary.

comment 7y ago · link · parent

The acquired team was P.A. Semi https://en.wikipedia.org/wiki/P.A._Semi

nothing to do with HP's https://en.wikipedia.org/wiki/PA-RISC

comment 7y ago · link · parent

The Darwin kernel is worthless because any free Unix is better. The graphical stuff is the whole reason macOS exists.

comment 7y ago · link · parent

In wlroots, when the only thing on your screen is a fullscreen app (i.e. a game), direct scanout is used instead of composition.

comment 7y ago · link · parent

> you still can't get hardware acceleration under Wayland for nvidia cards, making it unusable

Nvidia wrote patches for GNOME and KDE to support their crappy custom EGLStreams thing alongside the usual GBM. I think GNOME and KDE have accepted them.

comment 7y ago · link · parent

> extremely complex

Really? I can run any app with WAYLAND_DEBUG=1 and understand every message easily.

> because of the strange priorities it has worse performance than X11

If the performance that matters to you is the tiny bit of latency caused by vsync, keep using Xorg, or Windows 95, or whatever.

Wayland is inherently much faster because it's asynchronous and doesn't have anything in between the compositor and the clients (e.g.: app <-> Xorg <-> Compiz — xorg is just a glorified message broker!).

> wlroots library has more than 50000 LOC, all for moving around a bunch of overlapping windows? A bit much

Minus 8.5k for examples, minus 7k for the big example (rootston). It's not just moving windows around. Input is inherently complex, and it supports touchscreens, touchpad gestures, drawing tablets, virtual keyboards, pointer locking (moving the camera with the mouse in first person videogames).. Also, it implements multiple backends — running on KMS/DRM, nested on Wayland and X11, and as an RDP server. Considering that it's all in C, that's a tiny number of lines. More importantly than silly metrics, it's a modern, easy to get into codebase.

How much does Xorg have, with its five or however many input systems, multiple legacy ways of direct rendering, and whatever other crap it's accumulated?

comment 7y ago · link · parent

If visual perfection is nothing to you, if you love screen tearing, slow window redraw when moving, Windows 95-esque window trails, etc. — keep using Xorg.

Wayland is a protocol fully designed around composition. Clients have their own buffers, the server composites them. There is no way to draw directly to the screen, because we're not in the 90s with 640K of RAM and there's no reason whatsoever to implement the crappy way of rendering windows.

comment 7y ago · link · parent

Because if "working" was the only thing people ever wanted, we would be using Windows 95 or something. People want "not crap", and everything related to X11/Xorg is a gigantic pile of crap.

> terminal latency of Wayland default compositor vs X

I'm not sure what you mean by "default compositor" — Weston? — and what's "X" — Xorg without any compositor, with the Windows 95-esque situation of everything drawing into one buffer?

Yeah, you can decrease latency by a tiny bit by not compositing at all, but the result is totally unacceptable visually. People generally don't want to look at Windows 95 anymore.

comment 7y ago · link · parent

> lack of Wayland for the VideoCore 6

What?

Even VideoCore 4 with the Mesa vc4 driver supports Wayland — since it's Mesa, of course it implements GBM and whatnot. I've used Weston on an RPi3 with Arch Linux ARM.

For VideoCore 5/6, IIUC the only driver is Mesa v3d, even better situation, of course everything should work, and it will always work since no proprietary crap driver would ever get into people's hands.

comment 7y ago · link · parent

huh? KDE Plasma 5 works well, GNOME and KDE are considering/merging nvidia proprietary support (fuck nvidia, btw)

comment 7y ago · link · parent

> mobile devices running Android

They already have Bionic!

> or Fuchsia

They already have a weird fork of musl that Rich described in the email!

typical Google "Not Invented in this Team" approach..

comment 7y ago · link · parent

> WebKit.app (black Safari) are just Safari, but with the WebKit swapped out through various methods

yes, that's exactly what I said

comment 7y ago · link · parent

YouTube feels very fast for me in Firefox. The v0 polyfill is not slow, you shouldn't notice any slowdown from it unless your hardware is really really bad.

comment 7y ago · link · parent

Firefox is excellent on FreeBSD :P

comment 7y ago · link · parent

No, WebKit is an engine. It ships with small demo browsers for some platforms (minibrowser for gtk, at least) but that's it.

You might be confused by Apple calling its nightly Safari builds "WebKit technical preview" or whatever. It (used to) show up as "WebKit.app", but it's literally Apple Safari.

comment 7y ago · link · parent

> Dev tooling is poor compared to alternative

Really? Other than the websocket thing everyone keeps bringing up, I find Firefox devtools ahead of everything else. Especially for CSS layout.

comment 7y ago · link · parent

It's not like upstream Chromium has accelerated video on Linux..
1
424344
97