Better HN
topnewbestaskshowjobs
Log inSign up

CraftThatBlock

1,719 karma · joined Apr 23, 2014 (12y ago) · 349 submissions

https://github.com/Cretezy

https://cretezy.com

Work @ Lyft, all opinions my own

Submissions

comment 8y ago · link · parent

Author here! Let me know of any questions or suggestions for the project.

Quick links:

https://noderize.js.org

https://github.com/Cretezy/Noderize

comment 8y ago · link · parent

Although true, it is the same for npm or yarn too. There's no real solution to the typo problem, and it's not npx specific.

comment 8y ago · link · parent

The easiest way is simply to use npm's bin, which if installed globally (npm i -g my-command) is added to path.

comment 8y ago · link · parent

Good idea! I'll add it to the tutorial on the next release.

It's basically making a custom entry for that specific command and adding it as a bin in the package.json.

comment 8y ago · link · parent

It doesn't do double compilation when using TypeScript, .ts goes goes to tsc and .js to Babel. It uses Babel so you can use ES6/7/8 on the server.

This is meant as a simplified project build tool, not for every use, but you can configure it quite extensively if you need to (although it has limitations). I would estimation that ~80% of projects could use this, and is less than 5 minutes of migration or 30 seconds to get started. It's not for the 20% of projects with very custom needs for build configuration.

306.

Show HN: Noderize – Create Node apps in 30 seconds(medium.com ↗)

85 points · by CraftThatBlock · 8y ago · 33 comments

307.

Show HN: Noderize, create Node apps in 30 seconds(medium.com ↗)

6 points · by CraftThatBlock · 8y ago · discuss

308.

Show HN: Persist Redux in Flutter(medium.com ↗)

2 points · by CraftThatBlock · 8y ago · discuss

comment 8y ago · link · parent

2) Key signature

Since the server side doesn't store the key of the user, I would like a way to still be able to tell the user if their password is wrong. I need a way to generate something that can be stored on the server, that the user can sent when generating the initial key, and then can resend when logging in, that the server can reply true/false if the master key/password is correct.

My initial thought was to simply hash the master key and store that. I was going to use SHA-256 but since I might use that to get the AES key, I had to revisit it. Would simply generating a low-entropy/length hash from say MD5, and storing that, be a good option? I'm not worried about collisions, since the chance the user gets a collision for their own password is extremely low.

comment 8y ago · link · parent

1) Getting a shortened key

To start off, users enter a master password, which a key is then derived from (with a salt from a server) using scrypt, which a key length of 512 bits (the dkLen could be changed, although I would like to keep it to 512 bits/64 bytes for legacy reasons).

On the client-side, I would also like to use AES, which requires 256 bits (or 128/192) keys. My problem is getting a shorter key that is based on the original key.

My current proposal is using PBKDF2 (with HMAC-SHA-256) with a salt from the server (or use the same salt as the master key) to derive a secondary key, which will be recreated every time the user logs in. My problem with this solution is that there is no need for an intensive deriviation, since the original key will already be "secure", therefor having a low iteration count (or even just 1) would be an option. Which could also just be HMAC-SHA-256(master key, salt).

My second solution is simply calculating the SHA-256 of the master key, since using a salt seems overkill for digesting a 512 bits key already. This is simpler since there's no need to store a secondary salt (if not using the master salt). I would prefer this solution but I'm unsure if this is fit for this usage, since the generated hash would be used for AES purposes.

The third solution was to simply slice the master key and take the first half, which would be 256 bits. I was also unsure if this would be recommended.

311.

Ask HN: Cryptography questions (key shortening and key verification)

1 points · by CraftThatBlock · 8y ago · 2 comments

comment 8y ago · link · parent

I'm going to be adding a better form input to highly recommended users to use good passwords.

Since it doesn't store the master password (just the key derived from it), that is the true "game over" but would require trying the whole 2^256 space with HMAC-SHA256 to brute force the key.

If they try to brute force the actual mastet password, it would be extremely slow since it uses scrypt with a high n, which runs at 2 hash/sec on a good desktop (probably could be a lot higher using dedicated hardware, but still very very low compared to SHA256 which stands at millions of hash/sec).

I don't understand your last point, can you rephrase it?

313.

Show HN: MasterPassX, deterministic stateless password generator(medium.com ↗)

2 points · by CraftThatBlock · 8y ago · 2 comments

comment 9y ago · link · parent

https://www.messenger.com/login/password/ yields:

"Facebook Will Be Back Soon Facebook is down for required maintenance right now, but you should be able to get back on within a few minutes. In the meantime, read more about why you're seeing this message. Thanks for your patience as we improve the site."

comment 9y ago · link · parent

Am from St-Hubert and there's not much training here. We have an airport, but it's main purpose isn't training. That crash was a single off accident, could've happened anywhere (I live about 10 minutes away from the crash site).

comment 9y ago · link · parent

https://github.com/enaqx/awesome-react is a great start.

comment 9y ago · link · parent

And IIRC, it's built-in to creat-react-app.

comment 9y ago · link · parent

Looks great on mobile however

comment 9y ago · link · parent

This is a great step forward, however the nature of all "domains" is centralised. DNS is a great idea, that decouples the centralisation to many parties, but it is central at many points; registrars, ICANN, DNS servers (though can be local). Tor's unique .onion address are the perfect way to fix the centralisation and the security, but comes at the cost of human readability.

comment 9y ago · link · parent

This raises the question of: why is Spotify on HTTP for the first seconds? Would it be to bypass the TLS handshake, hence a faster "start" time? Wouldn't a constant connection (à la WebSocket with TLS) fix this?

comment 9y ago · link · parent

When in iOS, I used https://app.hackerwebapp.com/. In Android I'm using Materialistic.

comment 9y ago · link · parent

Is there any keyboard similar to the TypeMatrix (for ease of use and helping with RSIs) with mechanical switches?

323.

Boilerplate for React and Redux and Firebase Authentication(github.com ↗)

2 points · by CraftThatBlock · 10y ago · discuss

comment 10y ago · link · parent

Apps that claim "privacy" only actually protect the security, not anonymity of their users.

comment 10y ago · link · parent

The "privacy" apps nowadays (Signal for instance) is morw about security than anonymity.

326.

Ask HN: How to find part-time local/remote tech jobs (Montreal)

6 points · by CraftThatBlock · 10y ago · 1 comment

comment 10y ago · link · parent

So... Tor?

328.

Slow-deps: Measure which dependencies are the slowest to npm install(github.com ↗)

2 points · by CraftThatBlock · 10y ago · discuss

1
89101112