I am doing connection string encryption. we use our own encryption key with AES algorithm to do this. during the process, we need to convert string to byte array and then convert byte array back to string. I found the encoding play an important role on those conversions.
So I need to know the encoding C# is using to get above conversion right. Any idea how to get current encoding programmably?