Better HN
topnewbestaskshowjobs
Log inSign up

thusoy

75 karma · joined May 21, 2014 (12y ago) · 15 submissions

Co-founder of megacool.co.
Submissions

1.

Commit of the week – 2020 week 9(thusoy.com ↗)

2 points · by thusoy · 6y ago · discuss

2.

Laim: A Mail Transformer(thusoy.com ↗)

2 points · by thusoy · 6y ago · discuss

3.

Log sampling with Papertrail(medium.com ↗)

2 points · by thusoy · 8y ago · discuss

4.

Resistance-era password storage(thusoy.com ↗)

3 points · by thusoy · 9y ago · discuss

comment 9y ago · link · parent

I recommend Weekend Reading by Assaf Arkin to everyone, covers several topics from design and front-end to security, tooling and peopleware. More than just a collection of links, includes a bit of commentary which makes it feel much more personal.

https://labnotes.org/

comment 10y ago · link · parent

Yes, self-signed certificates without a CA is MitM-prone, but that's the only thing Heroku enables. You're only given a username and password and have to do with whatever configuration they've done, thus the problems.

comment 10y ago · link · parent

Thanks, glad you liked it!

comment 10y ago · link · parent

OP here. That's entirely correct, Postgres deployed correctly is secure against a MitM, but since Heroku has not issued a trust root, they are not.

Edited to add: As a user of Heroku Postgres you can't configure Postgres correctly, Heroku is supposed to do that for you.

9.

MitM-ing Postgres(thusoy.com ↗)

119 points · by thusoy · 10y ago · 14 comments

comment 10y ago · link · parent

I think the word you're looking for is key stretching.

https://en.wikipedia.org/wiki/Key_stretching

comment 10y ago · link · parent

This close enough? https://teespring.com/human-chaos-monkey

comment 10y ago · link · parent

For anyone that feel they might fall under the same category (I do!), represent: https://teespring.com/human-chaos-monkey

comment 11y ago · link · parent

Sadly, it doesn't. I was hoping for this as well, so I tested it, and it turns out that the user agent of the two browsers are identical.

  EME:      Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0  
  EME-free: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Firefox/38.0

comment 11y ago · link · parent

I would guess so, yes. You can never prove that something is random, merely that it behaves randomly "enough". There are lots of testsuites[1][2] you can run that will test that a generator is uniform and doesn't follow any patterns or has any other statistical weaknesses, but you can never prove that something is fully random without knowing the process that generates those numbers. A statistically sound RNG might just output the digits of pi, which would be non-repeating, uniform and pass any randomness test, but if you knew which digit the RNG started from and how many it has output so far you can easily predict the next one. Likewise if you're given a large enough sample you can search the digits to figure out the state of the RNG.

[1]: dieharder: http://www.phy.duke.edu/~rgb/General/dieharder.php

[2]: http://csrc.nist.gov/publications/nistpubs/800-22-rev1a/SP80...

comment 11y ago · link · parent

The easiest version is the most portable and easy to read in this case:

os.urandom(20)

Saves you from having to manage files at all, and works cross-platform.