Better HN
topnewbestaskshowjobs
Log inSign up

CiPHPerCoder

6,663 karma · joined Feb 25, 2016 (10y ago) · 1,775 submissions

My name is Scott. I do a lot of open source security research, and cryptography.

Previously AWS Cryptography (2019 - 2023).

Unless otherwise stated, my opinions are my own and do not reflect my employer.

https://scottarc.blog/about/

Submissions

comment 9y ago · link · parent

The flowchart in the beginning is very heteronormative. :(

comment 9y ago · link · parent

> If it's a security issue, then responsible disclosure.

See: https://adamcaudill.com/2015/11/19/responsible-disclosure-is...

933.

Show HN: Chronicle – An auditable, immutable, append-only public record(github.com ↗)

8 points · by CiPHPerCoder · 9y ago · discuss

934.

Chronicle Will Make You Question the Need for Blockchain Technology(paragonie.com ↗)

1 points · by CiPHPerCoder · 9y ago · discuss

comment 9y ago · link · parent

The only logical course of action is to file complaints demanding the inclusion of controversial topics and the removal of anything the anti-science crowd campaigns for.

I'm a Florida resident, but not a parent. I don't know what kids are being taught these days. I'd like to help, if I can.

936.

Chronicle Will Make You Question the Need for Blockchain Technology(paragonie.com ↗)

1 points · by CiPHPerCoder · 9y ago · discuss

comment 9y ago · link · parent

> It has to do with the lack of static types

We're using PHP 7, with declare(strict_types=1) everywhere.

> the "flexible" (i.e. lax) syntax, silent errors, and type coercion

We use return types with strict_types=1, and throw exceptions if something is going wrong rather than proceeding with invalid state. If something was going to return a falsy value where e.g. a string was expected, PHP will throw a TypeError instead. https://3v4l.org/8VR05

> But, even more than that, it has to do with the practices of PHP's maintainers. I suspect HHVM is better, but I can't say for sure.

The release manager for PHP 7.2 is a former HHVM dev, who is very much about correctness and maintainability.

It sounds like your opinion of PHP is based on circa 5.3 and earlier, but a lot has improved in 7.0 and newer. I'd definitely recommend giving newer code a second look.

http://www.hongkiat.com/blog/php7/

https://paragonie.com/blog/2017/02/cryptographically-secure-...

comment 9y ago · link · parent

With apologies to https://news.ycombinator.com/item?id=14643488

939.

Chronicle Will Make You Question the Need for Blockchain Technology(paragonie.com ↗)

3 points · by CiPHPerCoder · 9y ago · 3 comments

comment 9y ago · link · parent

Why not a yatagan?

comment 9y ago · link · parent

> It's still not entirely accurate, or at least conclusive, that WhatsApp effectively protects people against mass surveillance.

Yes, it is.

Mass surveillance is, by its very nature, defeated by E2E encryption even without identity verification.

Are you thinking of targeted surveillance?

comment 9y ago · link · parent

Most (if not all) people who signed that letter, myself included, are capable of reverse engineering and analyzing Android apps (i.e. WhatsApp).

You don't need access to the source code to perform this analysis.

Furthermore, if you can verify that the app does what it advertises, you don't need to trust their infrastructure. E2E takes care of that.

comment 9y ago · link · parent

Yes: http://www.h-online.com/security/features/A-death-blow-for-P...

944.

Show HN: Chronicle – Auditable, immutable, append-only data microservice(github.com ↗)

6 points · by CiPHPerCoder · 9y ago · discuss

comment 9y ago · link · parent

This uses libsodium to encrypt or sign HTTP message bodies. It works either client-side or server-side, on requests or responses.

Features:

  - Symmetric-key
    - Encryption (XChaCha20-Poly1305)
    - Authentication (HMAC-SHA512-256)
  - Public-key
    - Sealing (X25519 + BLAKE2b + XChaCha20-Poly1305)
    - Signing (Ed25519)
If libsodium is not available (it currently has to be installed via PECL), sodium_compat will polyfill these features.

It works on PSR-7 interfaces, but for framework-specific adoption, we've created a few Sapient adapters and creating your own is relatively straightforward.

Specification: https://github.com/paragonie/sapient/blob/master/docs/Specif...

Encryption specifics: https://github.com/paragonie/sapient/blob/master/docs/Intern...

Class documentation: https://github.com/paragonie/sapient/blob/master/docs/Intern...

946.

Show HN: Sapient – Security Toolkit for HTTP-Based APIs(github.com ↗)

1 points · by CiPHPerCoder · 9y ago · 1 comment

comment 9y ago · link · parent

.

948.

Show HN: Sapient – library for securing HTTP APIs(github.com ↗)

3 points · by CiPHPerCoder · 9y ago · discuss

949.

Hardening Your PHP-Powered APIs with Sapient (New Open Source Library)(paragonie.com ↗)

1 points · by CiPHPerCoder · 9y ago · discuss

comment 9y ago · link · parent

I've already been tipping Uber/Lyft drivers in cash since I first used either service.

I'm not sure how I feel about Uber being able to collect data on tip collection.

comment 9y ago · link · parent

> nobody

Well, almost nobody, because that's what I think of when people use these terms to degrade others.

comment 9y ago · link · parent

My coffee isn't working today, so I apologize if I'm off-point with my communication.

comment 9y ago · link · parent

I was talking about the intentional racists.

comment 9y ago · link · parent

Hah, I suppose it is! But sadly, it's the only effective solution I've found for dealing with e.g. actual Nazis that tried to encroach on my social circle.

955.

Libsodium Quick Reference(dev.to ↗)

3 points · by CiPHPerCoder · 9y ago · discuss

comment 9y ago · link · parent

The solution to ignorance is education.

Even if someone refuses to learn, educate everyone around them and let social pressure either break their stubbornness or isolate them.

comment 9y ago · link · parent

> a ton of unpaid work for companies they're applying to

Okay, that's a logistical objection to work-sample tests, which is easily rebutted with, "Simply don't assign _a ton_ of unpaid work" to your candidates.

The process we use for hiring software developers at my current employer:

  1. Clone this git repository.
  2. Build a trivial feature (e.g. adding a search feature to an
     existing blog platform).
  3. Send a patch or pull request.
Everyone who's being considered gets the same task, and we base our decision off of several factors: Did they implement a working solution? How much new code did they need to create (knowing that the framework does 99% of this already, and is documented)? If so, did they write unit-testable code? Did they write unit tests? Did they find any of the intentional vulnerabilities?

It should, realistically, take most people 2-3 hours at most to complete this task successfully. If they're familiar with PHP development, probably 15-20 minutes. Furthermore, it can be completed at their leisure.

If that seems unreasonable, contrast it with the cost of taking a day off work to get dressed up and perform an in-person interview during business hours with complete strangers who are scrutinizing you for fitness, with a very high chance of not getting accepted.

The burden of work-sample tests shouldn't be on candidates; the burden should lie with the company to ensure they're collecting objective facts about candidates rather than making subjective decisions.

comment 9y ago · link · parent

When zellyn said this is normal for PoC||GTFO, they weren't kidding.

https://www.alchemistowl.org/pocorgtfo/ (Click "Spoiler" for some of the old ones)

comment 9y ago · link · parent

I'm familiar with tptacek's writing. :)

This will get off-topic quickly, if we allow it to.

1
313233
60