Featured Series

Walkthroughs and guides serialized as blog posts.

Decrypting Apple Pay Payment Blob Using .NET

Walkthrough for decrypting ApplePay Payment blob using .NET.

Read more

Recent Posts

Read the latest posts to the Blog.

Architecture Tip: Mermaid Diagrams

If you are like me, you love coding. There is little else you would rather be doing. But that’s not the only thing we have to do, is it? There’s a lot of ceremony that comes with writing software. Ticketing systems. Documentation. Architectural diagrams. Emails. As we go along, less and less of our time […]

Coding Style Tip: Use Named Arguments When Passing null to Methods

I noticed this pattern in play while working on the System.Text.Json code in .NET Core (corefx) and immediately fell in love with it. Consider this method signature: Lots of complex stuff being passed into this method and much of it is optional. That’s kind of a “code smell” right? This method is a heavy-lifter or […]

Decrypting Apple Pay Payment Blob Using .NET – Part 4: Decrypt the data.

Series Intro: Decrypting Apple Pay Payment Blob Using .NET Finally, we’ve arrived at Step 4 on Apple’s guide for decrypting the payment blob, which is the actual decryption. This is where all our efforts will finally bear fruit. What kind of fruit? Apples, of course. Our guides have instructed us as such: For ECC (EC_v1), […]

Decrypting Apple Pay Payment Blob Using .NET – Part 3: Restore the symmetric key.

Series Intro: Decrypting Apple Pay Payment Blob Using .NET Step 3 on Apple’s guide for decrypting the payment blob is where things really start to get interesting. Now we need to derive key material which will be fed into the encryption algorithm we’ll use to decrypt the cipher bytes. Don’t close your laptop! It’s not […]


Blanch on Code is a programming blog for .Net enthusiasts. A place to share experiences and learn how to assemble great software built around the .Net platform. Tips, tricks, hacks, and more.

About Blanch

Blanch is an industry veteran with twenty years of programming experience. Currently working in a payments group for a large corporation. Originally a UX developer Blanch has a soft spot for interfaces but spends most of his time developing high throughput services.

About Code

Great code is simple and easy to read. If you really want to make something that will last try to build it so the next coder working on it can easily extend and add to what you’ve done. The more code you write, the more code you read, the better at it you’ll be! ABC… always be coding.


Questions, comments, concerns, or ideas? Send them over! Life is all about participation.

Or reply to your favorite Post and join the conversation instantly.