Last week, we had a heated discussion at work about encryption. We want to encrypt some data in our database, and I proposed that we go with a single private-key encryption mechanism (ignore which exact one for the moment), and my colleagues were pretty-much unanimously suggesting a ‘key per row’ approach. In this post I am going to attempt to explain the rough background, and why I felt their mechanism might not be best.
Archive for the ‘.Net Details’ Category
More Keys is More Secure. Right?
Saturday, March 27th, 2010Boolean Expressions
Friday, March 5th, 2010The C# code-base I work on has hundreds of places where I have felt a boolean expression could have been used to simplify the code substantially.
Rethrowing Exceptions in C#
Monday, May 4th, 2009A colleague recently mentioned to me that he thought that re-throwing an exception with ‘throw ex’ was a Bad Thing… and as I was not aware of this I did some comparisons of different options to at least try to understand what I was losing out on by using ‘throw ex’.
Gentle.Common.Error.NoProperty
Thursday, September 4th, 2008Yes - this is a post about an error - one that I could find nothing on Google about. It’s a quick one, about the Gentle persistence framework for .Net programming.
Answers to the Test
Saturday, February 9th, 2008My previous post posed some C# questions based on some code with incomplete output. This post provides the answers… don’t cheat now…
Test Yourself on C# Types
Saturday, February 9th, 2008I’ve been thinking about writing a technical test for my employer, and thought that I would start by following-up on my last post, and create a basic test on types and how they are passed as parameters.
Reference and Value Types
Sunday, February 3rd, 2008Today I’m going to cover some basics in C# - the difference between Reference and Value types.
Some Basic Object Ideas
Saturday, January 26th, 2008I’ve been thinking about some basic ideas recently related to the design of a Object Layer for the C#/.Net project that I’m working on. Actually, it’s not a proper OL really, more of a set of enhancements to the Data Access Layer generated with MyGeneration for the Gentle framework. Of course, this is all rather old-hat for anyone who’s utilised Datasets in .Net 2 or later, but there you go.
Coding Styles - A Fine Line Between Clever and Stupid
Tuesday, May 8th, 2007I’ve been thinking a lot about coding style recently. I must admit that I have probably always tended to code in a way that would be considered to be verbose by many programmers. Although I learnt to program by myself, I benefited from an extensive professional programming course in PL/I (which doesn’t date me too much, but it does date the machines I was working with!)
Oracle and C# Tutorial Posted
Thursday, April 19th, 2007Just a quick note to say that I have just written and released a tutorial on getting C# .Net v2 to work with an Oracle database. It has its own page which is here.