.Net Simple HTTP Client Helper Class

Recently, I have been working on a mobile app. I don’t like languages that are not C#, and I don’t have a need for low-level access, so I have been using Xamarin.Forms. Xamarin.Forms is super convenient and easy to use. Combined with Shared Projects, Xamarin.Forms allows for 95% of code to be written once and used across all major platforms. Anyways, not time for a sales pitch. My app connects to a RESTful HTTP server (henceforth known as the REST API) developed using the WebAPI framework. For the most part, this consists of getting lists of objects from the server, like a list of categories or a list of restaurants. I wrote a simple helper class for this, and would like to share part of it with you today. Continue reading “.Net Simple HTTP Client Helper Class”

Encode/Decode base64 Strings using C#.NET

When testing systems, it can be useful to see what’s hidden behind a base64 string. Maybe we are running a secuirty audit and come across an HTTP endpoint using Basic Authentication  :O and we want to illustrate to those that don’t understand the risk and why it should be changed (well, it looks encrypted to a non-technical person…). You might need this for any number of reasons. Maybe you just want to try it for knowledge’s sake. Lucky for us, .NET has wonderful built in methods for working with base64.

Continue reading “Encode/Decode base64 Strings using C#.NET”

Create a website or blog at WordPress.com

Up ↑