# Encryption Blues

Published 2014-12-08 (America/New_York). Tags: Single sign-on, .net, software-development, encryption. Canonical: https://www.markdavidrogers.com/encryption-blues/.

Currently I'm trying to create a single-sign on solution, and I was having trouble because sometimes (but not always) the encrypted text would fail to decrypt. I found out that the later .net versions have stricter checking for valid characters. So when the encrypted byte array was converted to a string, the encoding process would create characters that the stricter decoding process did not like. This <a href="http://blogs.msdn.com/shawnfa/archive/2005/11/10/491431.aspx">article</a> on msdn's .net security blog finally helped me out.
