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

I appreciate the feedback, but we're holding off on making it look prettier until we've finished with the technical heavy lifting. (Front-end design is not my strong suit.)

comment 10y ago · link · parent

Oops. Copy-paste mistake. Thanks for letting me know.

The way self-updating works is: I use one of the bundled tools to create and distribute an update pack. Each site (once per hour, in the default config) will ping for any updates and, after verifying the Ed25519 signature with our public key, apply them.

comment 10y ago · link · parent

Thanks for the feedback. I'll definitely take that into consideration when writing future pieces about it.

comment 10y ago · link · parent

Announcement blog post: https://paragonie.com/blog/2016/03/introducing-cms-airship-s...

Github: https://github.com/paragonie/airship

Any early feedback would be greatly appreciated.

1685.

Show HN: Airship, a modern and secure CMS written in PHP 7 (1st Beta)(paragonie.com ↗)

4 points · by CiPHPerCoder · 10y ago · 8 comments

comment 10y ago · link · parent

This was my favorite response:

https://www.ietf.org/mail-archive/web/cfrg/current/msg06805....

comment 10y ago · link · parent

Also, it is overwhelmingly the case that the people that tend to favor cipher cascades are new to cryptography, and generally have a very activist mindset behind their choices and actions.

I've reviewed this sort of activist code (Minds.com, Tutanota, etc.) and found it to be dangerous.

comment 10y ago · link · parent

You can't go wrong with http://cryptopals.com which isn't a book but rather a set of practical exercises.

comment 10y ago · link · parent

They also missed the hilarious saga of the Crystalline cipher.

comment 10y ago · link · parent

For anyone following this part of the comment thread, the mailing list discussion about these topics is worth a read too:

https://www.ietf.org/mail-archive/web/cfrg/current/msg05619....

comment 10y ago · link · parent

I think you're right.

comment 10y ago · link · parent

> If you pay enough attention to the people who select but don't design ciphers --- ie, non-cryptographer engineers --- you're starting to hear more and more of a drumbeat of "do whatever DJB says"; if you push those people to explain those decisions, you don't usually get good answers.

Sure. I like to call that condition "secure by default". Said engineers most often don't have a lot of knowledge and experience with cryptography, so they opt for the best option available. In a lot of cases, it's DJB's work. In other cases, it's someone who followed his example (e.g. the BLAKE(2) team).

Also, this might have had something to do with this shift towards the current situation:

https://gist.github.com/tqbf/be58d2d39690c3b366ad

> Use, in order of preference: (1) The Nacl/libsodium default

> If you can just use Nacl, use Nacl. You don't even have to care what Nacl does.

comment 10y ago · link · parent

None of the OpenSSL vulnerabilities that were published in the past few years affected its AES implementation.

comment 10y ago · link · parent

1. You shouldn't encrypt passwords. https://paragonie.com/blog/2015/08/you-wouldnt-base64-a-pass...

2. Blowfish and bcrypt are totally separate, if that's what you meant.

3. It has a 64-bit block size.

1695.

Experiment: Can low carbohydrate ketogenic diets inhibit cancers?(experiment.com ↗)

8 points · by CiPHPerCoder · 10y ago · discuss

comment 10y ago · link · parent

Short answer: No.

Long answer: Yes, there are community-provided patches available on the SourceForge project, but they were never merged and a new release was never tagged by the project team, so effectively no.

* https://sourceforge.net/p/mcrypt/patches/10/

* https://sourceforge.net/p/mcrypt/bugs/39/

* https://sourceforge.net/p/mcrypt/patches/1/

* https://sourceforge.net/p/mcrypt/patches/6/

comment 10y ago · link · parent

This is indeed pretty terrible. It indicates that this library was not adequately studied by security experts at the time it was abandoned.

If you're writing code with libmcrypt (for example, in PHP), strongly consider switching to OpenSSL or, if the upcoming RFC passes for 7.1, libsodium. (An RFC passed this week that will deprecate then remove libmcrypt support for PHP.)

Further reading:

* If you're typing MCRYPT into your PHP code, you're doing it wrong: https://paragonie.com/blog/2015/05/if-you-re-typing-word-mcr...

* Mcrypt deprecation/removal RFC (accepted): https://wiki.php.net/rfc/mcrypt-viking-funeral

* Libsodium RFC (soon): https://wiki.php.net/rfc/libsodium

* Cryptographic Right Answers: https://gist.github.com/tqbf/be58d2d39690c3b366ad

(Note: Although libmcrypt is terrible, it's worth noting that PHP's own ext/mcrypt code, mostly mcrypt_create_iv(), is actually not bad.)

comment 10y ago · link · parent

> DNSCrypt is already encrypted and Tor offers zero privacy but it does offer the FBI helpfully monitoring to de-anonymize Tor clients and servers.

This is pure FUD.

> Using a VPN and DNSCrypt together would far better.

https://gist.github.com/joepie91/5a9909939e6ce7d09e29

Don't use VPN services.

comment 10y ago · link · parent

Why not just forward DNSCrypt queries over Tor?

comment 10y ago · link · parent

I'd look forward to it, personally, but I like learning new things about security.

1701.

Libmcrypt has been using the wrong S-Boxes for GOST for years(sourceforge.net ↗)

5 points · by CiPHPerCoder · 10y ago · discuss

1702.

The tools we give developers should be simply, yet comprehensively, secure(paragonie.com ↗)

1 points · by CiPHPerCoder · 10y ago · discuss

comment 10y ago · link · parent

Observation:

https://github.com/uutils/coreutils/blob/master/LICENSE

GNU coreutils is GPL, this is MIT.

1704.

The PHP Community votes to deprecate support for abandoned crypto library(news.php.net ↗)

1 points · by CiPHPerCoder · 10y ago · discuss

comment 10y ago · link · parent

Or just not support older IEs.

http://browserupdate.org/

1706.

All the crypto code you've ever written is probably broken (2012)(tonyarcieri.com ↗)

5 points · by CiPHPerCoder · 10y ago · discuss

comment 10y ago · link · parent

Some other attempts to raise aware of ciphertext malleability and AEAD modes:

* https://tonyarcieri.com/all-the-crypto-code-youve-ever-writt...

* https://paragonie.com/blog/2015/05/using-encryption-and-auth...

* Many articles on http://www.cryptofails.com

comment 10y ago · link · parent

I'm not sure "Boom" is the word I want to mentally associate with aircraft.

comment 10y ago · link · parent

How about getting away from San Fransisco?

comment 10y ago · link · parent

Try logging in with only the first 16 characters of your password rather than the full password.
1
5657585960