Carter Bancroft

Mocking JSON Web Tokens with Express and Auth0

I'm writing an Express app, integrated with Auth0 for authentication, that has JSON Web Token (JWT) secured endpoints. If you're in the same boat and want to unit test JWT secured endpoints, look no further. I'm not going to go into the nuts and

Asymmetric Encryption is Magic

The key distribution problem has plagued symmetric encryption since day one. If you need to send a secret to someone, getting the key to them without it being intercepted is a real issue. Sure, you could meet in a dark alley and whisper it into their ear but what if

Symmetric Encryption, Because it's Interesting

These days, there are two major "categories" of encryption. Symmetric key encryption and Asymmetric key encryption. Today we're going to talk about the symmetric side of things. What is it? How does it work? Examples, etc. Let's dive in. What is it? Symmetric encryption

Basic CS Concepts to Master For Cryptography (and More)

OK so this is, to some, a boring topic. I like this sort of thing because it's foundational to how computers work. It's the underpinnings of how I can bang on this keyboard to make stuff happen on the screen, how your Tesla autopilot (you have

Part 3: Breaking Repeating Key XOR Programmatically

This is part three in a three part series on repeating key XOR encryption inspired by Cryptopals challenges five and six of set one. In part one I broke down how to understand and implement repeating key XOR. I'd recommend you start there. In part two I described

Carter Bancroft © 2026