Friends Don't Let Friends Use PyCrypto — The Art of Machinery (2024)

For all practical purposes, PyCrypto, the Python Cryptography Toolkit, is dead. The package has several issues (manyof them with security implications) that will almost certainly never get fixed because the project hasn’t been updatedin multiple years. Despite that, I still see PyCrypto recommendations around every now and then — I just got it removedfrom the Awesome Cryptography list.

This unfixed, exploitable crashing bug should be goodreason to stop using PyCrypto. But that’s not the only security flaw by any means — just browse the issues list to find more. And that’s still not all theproblems. Last year I looked at the code and found a smallcryptographic flaw that I patched in PyCryptodome (the fork that’s continuing the project). The flaw still existsin PyCrypto, and I didn’t bother filing an issue there. There are probably many more flaws that have been discovered,publicly or privately, but aren’t listed.

This package had its day, but it’s beyond time to stop using it.

What are the Alternatives?

The new Python Cryptography package is quite nice. It has anAPI that’s designed to be easy to use securely.

If using a totally new API isn’t an option, there’s the PyCryptodome fork. Be aware, though, that the PyCrypto API is the exactopposite of “easy to use securely”. The example and all the defaults onthe AES documentation page are bad security practices. That’s a lot of nasty footguns on just one page ofdocumentation, which is kind of scary. Thankfully, the PyCryptodome project has been fixing many of these problems, butI still recommend and use Python Cryptography.

You can read more posts tagged Python and Security ,including these:

What Difference Can Order Make When Hashing?

I saw this thread about passwordhashing on the D language forums. The original post had a good question that didn’t get answered at the time: ifyou’re hashing a bunch of things, can it make any difference (for security) what order you do it?

The answer turns out to be yes, and it’s a neat example of the difference between theoretical ideals and real-worldsystems. Because I think this stuff is worth knowing if you’re using cryptographic hash functions for, you know,actual crypto, I thought I’d write up a blog post about why it can matter.

Code Jam 1A :/

Well, I started off round 1A feeling good.By the 6min mark I had solutions for the small and large inputs for problem A submitted, then… everything fell apart.It was my first time in a long while writing code under live competition conditions, and I’d forgotten just how toughit can be. Time for more practice.

Ignoring my total failure to get working solutions across the finish line, the next two problems weren’t actuallyhard – they could fit in as medium problems in a qualification round. In fact, so many people solved them thatgetting a perfect score wasn’t even enough to get to Round 2.

By the way, my Python solution for problem A brings me to 9 languages in this Code Jam. Will I keep going? Thatdepends on how jet-lagged I am for rounds 1B and 1C.

Friends Don't Let Friends Use PyCrypto — The Art of Machinery (2024)
Top Articles
A guide to Food poisoning
What is Text message abbreviations and acronyms? | Definition from TechTarget
Fighter Torso Ornament Kit
Methstreams Boxing Stream
Moon Stone Pokemon Heart Gold
Danatar Gym
Kansas Craigslist Free Stuff
Wild Smile Stapleton
Mohawkind Docagent
Ou Class Nav
Pbr Wisconsin Baseball
Cvs Devoted Catalog
Acbl Homeport
Ave Bradley, Global SVP of design and creative director at Kimpton Hotels & Restaurants | Hospitality Interiors
4Chan Louisville
Socket Exception Dunkin
Dallas’ 10 Best Dressed Women Turn Out for Crystal Charity Ball Event at Neiman Marcus
Kaomoji Border
Baywatch 2017 123Movies
Byte Delta Dental
Roster Resource Orioles
Dover Nh Power Outage
Yog-Sothoth
Pearson Correlation Coefficient
Form F-1 - Registration statement for certain foreign private issuers
From This Corner - Chief Glen Brock: A Shawnee Thinker
Democrat And Chronicle Obituaries For This Week
Pronóstico del tiempo de 10 días para San Josecito, Provincia de San José, Costa Rica - The Weather Channel | weather.com
Bend Missed Connections
Downloahub
Helpers Needed At Once Bug Fables
Wheeling Matinee Results
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Kaiser Infozone
Does Circle K Sell Elf Bars
Average weekly earnings in Great Britain
Shiftwizard Login Johnston
2008 DODGE RAM diesel for sale - Gladstone, OR - craigslist
Leena Snoubar Net Worth
888-822-3743
Isabella Duan Ahn Stanford
Cocaine Bear Showtimes Near Cinemark Hollywood Movies 20
Parent Portal Pat Med
Copd Active Learning Template
N33.Ultipro
Movie Hax
Unblocked Games 6X Snow Rider
Pas Bcbs Prefix
Evil Dead Rise - Everything You Need To Know
Tenichtop
211475039
Intuitive Astrology with Molly McCord
Latest Posts
Article information

Author: Terence Hammes MD

Last Updated:

Views: 6008

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Terence Hammes MD

Birthday: 1992-04-11

Address: Suite 408 9446 Mercy Mews, West Roxie, CT 04904

Phone: +50312511349175

Job: Product Consulting Liaison

Hobby: Jogging, Motor sports, Nordic skating, Jigsaw puzzles, Bird watching, Nordic skating, Sculpting

Introduction: My name is Terence Hammes MD, I am a inexpensive, energetic, jolly, faithful, cheerful, proud, rich person who loves writing and wants to share my knowledge and understanding with you.