Archive for November 13th, 2008

Base-64 as URL Parameter

other-096 Yesterday, I was working on an application that passes encrypted data as a URLEncoded parameter on to another page.

The problem we were having with this code was that the code would occasionally give us the error, “Invalid Length for a Base-64 char array” when the code was converting the parameter back to a byte array so that it could decrypt it.

What was even more puzzling is that the exact same code run from two different computers would produce two different results.  So it wasn’t exactly data-specific.

Read the rest of this entry »