remove mode setting in dotnet encryption method.