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 10y ago · link · parent

Yeah. I'll email 'dang in case he's not active at the moment.

comment 10y ago · link · parent

Not mentioned in the article: Several RFCs being voted on or discussed right now.

Also, https://wiki.php.net/rfc/libsodium

1563.

When Hashing Isn't Hashing (Cryptography)(adamcaudill.com ↗)

4 points · by CiPHPerCoder · 10y ago · 1 comment

comment 10y ago · link · parent

I just nominated Null, I hope others do too.

comment 10y ago · link · parent

Good point. Updated.

comment 10y ago · link · parent

https://www.youtube.com/watch?v=MeXQBHLIPcw

comment 10y ago · link · parent

This code is ugly anyway:

    private static void rangeCheck(int arrayLen, int fromIndex, int toIndex {
         if (fromIndex > toIndex)
              throw new IllegalArgumentException("fromIndex(" + fromIndex +
                   ") > toIndex(" + toIndex+")");
         if (fromIndex < 0) 
              throw new ArrayIndexOutOfBoundsException(fromIndex);
         if (toIndex > arrayLen) 
              throw new ArrayIndexOutOfBoundsException(toIndex);
    }
Missing a closing paren in the function prototype, among other things.

    private static void rangeCheck(int arrayLen, int fromIndex, int toIndex)
    {
         if (fromIndex > toIndex) {
              throw new IllegalArgumentException(
                  String.format("fromIndex(%d) > toIndex(%d)", fromIndex, toIndex)
              );
         }
         if (fromIndex < 0) {
              throw new ArrayIndexOutOfBoundsException(fromIndex);
         }
         if (toIndex > arrayLen) {
              throw new ArrayIndexOutOfBoundsException(toIndex);
         }
    }
There you go Google, Oracle, et al. I release this snippet under MIT / WTFPL / CC0. You're welcome.

comment 10y ago · link · parent

> if the choice is between the true and the good, then for the sake of society, the true must go

I vehemently disagree. This is a prelude to Brave New World.

1569.

Defuse Security's PHP Encryption Library Version 2 Is Out(paragonie.com ↗)

2 points · by CiPHPerCoder · 10y ago · discuss

comment 10y ago · link · parent

Security isn't the default, though. Specific example: SMTP.

comment 10y ago · link · parent

> I don't personally use AVs but they're useful for people who cannot be taught security.

Attackers agree. Even outside of the context of remotely exploitable ring-0 vulnerabilities that require no user interaction, they provide people with a false sense of security.

> Such vulns are relatively rare compared to the things they run into multiple times a day.

That's because criminals are fat and happy with lower hanging fruit. Why bother exploiting AV software when you can just trick people and the AV software is already ineffective at stopping e.g. ransomware?

comment 10y ago · link · parent

If you've been following Tavis Ormandy's work, you already know this:

    Anti-Virus software is a trash-fire.
You can't buy security, but you can learn it: http://decentsecurity.com/#/introduction/

I've long argued that the only sustainable security strategy is education.

If you're a developer/engineer/consultant/rockstar/ninja/etc. and never bothered to learn how to write secure software, start here: https://paragonie.com/blog/2015/08/gentle-introduction-appli...

1573.

What's New in Defuse Security's PHP Encryption Library Version 2(paragonie.com ↗)

1 points · by CiPHPerCoder · 10y ago · discuss

comment 10y ago · link · parent

https://caddyserver.com

comment 10y ago · link · parent

> That's absolutely right. I haven't disclosed vulnerabilities for several websites because of this exact reason.

Depending on how you learned of said vulnerabilities, you might still be culpable for the mere act of discovering them.

comment 10y ago · link · parent

I can't speak for others, but I see marketing as manipulation and I see manipulation as a dehumanizing act that robs humans of their own agency.

comment 10y ago · link · parent

"This person is a criminal. Next!"

comment 10y ago · link · parent

Teaching yourself computer security by getting root on the servers hosting illicit torrent-sharing websites isn't exactly something you put on a resume, as a particular example.

comment 10y ago · link · parent

Taylor (@DefuseSec) is one of the organizers of the Underhanded Crypto Contest at DEFCON; it started as an open invitation to try to social engineer him so he can improve himself. It wasn't a marketing stunt, at all.

comment 10y ago · link · parent

> Getting a phone interview by contacting a company is easy if you have the right resume credentials.

That's the problem. Resumes shouldn't matter. The capability to solve programs through an understanding of software-- which is often acquired without going through a resume-building path-- is what matters.

comment 10y ago · link · parent

This is why you always want to define your scopes.

He clearly intended for some variant of "any of my software projects that other people actually use", but failed to specify that detail.

But it's nonetheless hilarious. Laughs all around.

comment 10y ago · link · parent

What exactly could DefuseSec be marketing here?

Disclosure: He and I have been friends for years.

comment 10y ago · link · parent

That acronym misled me too: "DRM? In Linux? :("

comment 10y ago · link · parent

If you're wondering about our choice in primitives: https://github.com/paragonie/halite/blob/master/doc/Primitiv...

No user should ever need to know these details to use it successfully.

1585.

Solve All Your Cryptography Problems in 3 Easy Steps [PHP](paragonie.com ↗)

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

comment 10y ago · link · parent

This change was beneficial to me.

Before upgrading, a grand total of 4 users had access to our private repositories, of which we were only using 7 out of 10. I was nervous about running out of repositories moreso than the cost of adding people.

(If we grow our team, it's because we have a lot of client work that's outside my immediate strong suits and we had to hire. If we do that twice, I'll gladly pay the extra $9/month.)

comment 10y ago · link · parent

> Lol lattice-based theoretical crypto has solid theoretical foundations.

Yes, it was (is?) one of the candidates for post-quantum public-key encryption. But that doesn't stop terrible projects from claiming to have it in their marketing today.

comment 10y ago · link · parent

https://freedom-to-tinker.com/blog/jbonneau/be-wary-of-one-t...

comment 10y ago · link · parent

I can't wait to find exploitable side-channels in the first-to-market implementations of this idea.

Lattice-based crypto is all the rage among snakeoil marketing (right after One-Time-Pads).

comment 10y ago · link · parent

The subsequent Reddit thread did not help PHPixie's credibility: https://www.reddit.com/r/PHP/comments/4iju97/95_of_phpixie_i...
1
525354
60