HNHacker News
TopNewBestAskShowJobs

dh997

63 karma · joined January 19, 2016

submissionscomments
dh997··on Login Forms Over HTTPS, Please
Exactly. That's the risk to mitigate. Here's scrypt for js using emscripten on actual scrypt C source... the site has to provide and adjust/migrate the three factors over time to ensure a sane amount of cpu/memory is used: https://github.com/tonyg/js-scrypt

For real-world, practicality's sake, the client-side of an app would contain the PBKDF or some AA code, as opposed to the traditional, slightly-riskier "let the server handle all of it"-approach... the server still has final say on authentication and authorization, just move some of it into client-side js. There's really not much impact on FE development considering most FEs and BEs are codeveloped these days anyhow.

Btw, for web devs Two-factor auth is cheap and easy to do, Google Authenticator OTP has open source libs and requires no calls to Google to work.

dh997··on Login Forms Over HTTPS, Please
You're wrong because it's a strawman since if an attacker can intercept the hash they could as easily intercept the plaintext in your traditional server-side architecture. The attacker cannot replay a TLS unless there is a problem with it, there have been many issues in TLS stacks, but it's the most widely deployed.

Furthermore, using plaintext any further from the owner or exposed longer than is necessary is inherently less secure because your breach of https would also compromise users' passwords.

dh997··on Login Forms Over HTTPS, Please
Most websites with any sense dont store actual passwords, they usually store salted PBKDF hashed that are compared in constant time.
dh997··on Hoverboard fires
Even awesome, thoughtful Boosted boards catch on fire now and then. I think even with the beginning of honest alternative transport devices pushing technology to break new ground inevitably results in some teething issues that will get fixed as engineering and safety standards evolve with the benefit of hindsight. The sentiment of condemning an entire catagory of products for cheap knockoffs and slow-moving regulators is wrongheaded and dumb.

(If there were blanket bans for use, as opposed to sale, I wouldnt be suprised to see mobility device exceptions... But so far the much hooplahed NYC hoverboard ban never materialized on the street level.)

dh997··on Ask HN: What's going on at IBM?
Investing in many startups requires a great deal of judgement and some due-diligence, far more than either IBM or Yahoo were capable... If direct investment were in-house scalable, institutional investors wouldn't invest in VC funds, but it's a very high-risk, somewhat hands-on activity to avoid throwing all money away.

It's not called a warchest for nothing, so although it might give competitors some pause, it does chap investors for not disbursing larger dividends or reinvesting in growth/m&a, and it additionally paints a larger bull's eye on them for capital extraction.

dh997··on Bad USB-C cable destroys laptop
Most likely cheap consumer devices wouldn't get it, but prosumer, enterprise and industrial gear should think twice about cutting corners on peripherial protection circuits and make sure to test vcc ground reversal and application to data pins... because commercial engineering boils down to risk management.
dh997··on No POST after rm -rf /
Dangerous tasks should have the most safety interlocks, but not require manual, needy attention that makes it harder to automate deployments. This edge-case functionality may still be useful for self-destructing / remote bricking sensitive embedded devices.

    efidestructivecmd opts... --really-brick-myself-and-catch-fire  # fire optional
dh997··on No POST after rm -rf /
Reinvention without purpose often appears to take credit for fixing "old==bad" and dodging blame for churn, usually ortogonal of understanding of users' needs: enterprise, industrial embedded, IoT, desktop, mobile, etc. and the actual pain and cost of change at large scale (beyond people one knows and non developers).
dh997··on Login Forms Over HTTPS, Please
Wow, this is still even a thing.

The form, all its js assets and form api endpoint all have to be secured. And https for everything that contains code. Deploying SRI for web pages over https is also another layer of defense against js tampering.

Also, sending passwords across the wire in any reversible manner is really more dangerous than is necessary. Passwords/passphrases could be salted hashed by the browser in JavaScript using a PBKDF similar to scrypt or bcrypt, before being sent to the backend for constant-time comparison... it just takes a little more prudence and effort, but it's absolutely doable.

dh997··on Goldman Sachs and the $580M Black Hole (2012)
Dragon NaturallySpeaking could transcribe continuous speach in the late 90's at nearly full speed, it was amazing. But then it disappeared, this explains it.

Moral of the story: don't ever pay upfront for deal advice because interests aren't aligned, light a fire under the due-diligencers by making it a % of the deal.

Not everyone at Goldman is evil I can vouch for that personally, but also not everyone there (or in M&A / wall st circles) doesn't gradually acquire some degree of jaded entitlement or dispassionate, insular inhumanity either... that's what a city and high earnings does to some people. Plus, not knowing business, not having a strong relationship with an IB and not doing your own due-diligence are all contributing personal failures. Regardless, the other party spears to have committed fraud and Goldman seems it didn't completely live up to its fiduciary duty in this instance. The nails in these employees' coffins is not meeting with the press to express reasonable and legally-defensible answers, it makes them look guilty. (You've got to know when a blanket best-practice such as not speaking to the press during ongoing legal matters should be broken without compromising the case.)

dh997··on Replace a running Debian installation by Arch remotely over ssh
Linux installs (apart from grub boot blocks and partitioning) are JBOF (just a bunch of files).

Mostly, the non-user parts are /etc /boot /usr and /var (for package management), and things aren't always in the same places and conf files may vary in options because of version/patch differences.

Using symlinks and seperate directories, it's theoretically possible to switch OSes at boot time assuming everything is symlink-agonistic (stow for operating systems)

It's possible and rarely necessary except for personal playgrounds but a production box would follow 12factors standards and lifecycle the entire OS by switching the underlying base image with something like unionfs + hypervisor.

Lots of ways to shoot yourself in the feet, and in box rebuilds it's usually much faster to just start fresh and deploy using configuration management than try to hammer a bank into the shape of plane.

Definitely make verified backups before attempting a lobotomy on anything real.

dh997··on Google Will Soon Shame All Websites That Are Unencrypted
Basically efficient, low-latency caching for html and css content is over unless there's SRI for them. It makes sense to have a mini webpage delivered securely that lists hashes for all static assets, and then serve some static assets insecurely to take advantage of CDNs as long as they don't disclose individual app actions (assets everyone sees on many pages). The downside is the balancing of risk for activity leakage based on insecure assets. Of course, some dynamic content and sensitive state needs to remain secure. The issue is that securing everything depends on whether you're willing to trust your CDNs and caches with your certs and private keys (granted, you already trust them to display the correct content.). That sort of technical risk management needs to be considered carefully if insecure assets can dramatically speed up UX (because TLS sessions take some or a lot more work... since how would the browser and backends do session caching or pipelining across infrastructures and providers that likely have multiple IPs? One connection per provider, each keeping their own cache for their HA boxes?)

Maybe there needs to be an insecure HEAD or CACHE open standard to check content freshness of a secure page via crypto hash (say canonical uri, etag and last modified) to avoid building up a full TLS session to see nothing's changed?

dh997··on Google Will Soon Shame All Websites That Are Unencrypted
HN could do its part: for example, start marking all http:// links red. For our content sites, we can also announce to users this change and roll something out.
dh997··on Why BPG will replace GIFs and more
Pretty much.

Q @ anyone whom chimes in: what format(s) do sites use for silent, live-action backgrounds to make their websites and apps seem friendlier?

dh997··on “No Cost” License Plate Readers Are Turning Texas Police into Debt Collectors
Waiting for the cost to reduce, performance and battery tech of semiautonomous drones to improve to the point where crowdfunded watchdog groups could begin to afford to follow every police officer with a camera, live streaming and recording them almost all the time while on duty. It could be possible, at least start off with problem cops while they're patrolling on foot. I think that's one of the most effective ways to hold them accountable and provide a direct, counterveiling force against pervasive, unbridled hubris that most resembles a mafia. Not like confrontational YouTubers, but change the thinking to "we're watching you."
dh997··on Amazon Hires Homeless Workers, and Everyone Ends Up Disappointed
Yup. Buddy deals are the best way to waste your time, lose money and damage relationships.
← PreviousPage 2 of 2