Click here to Skip to main content
15,921,646 members
Home / Discussions / C#
   

C#

 
GeneralRe: help Romote Programmer Pin
breakhearts25-Jun-06 4:59
breakhearts25-Jun-06 4:59 
Questionabout ObjectDisposedException Pin
Super Lloyd24-Jun-06 18:12
Super Lloyd24-Jun-06 18:12 
AnswerRe: about ObjectDisposedException [modified] Pin
Guffa25-Jun-06 0:32
Guffa25-Jun-06 0:32 
GeneralRe: about ObjectDisposedException Pin
Super Lloyd25-Jun-06 0:45
Super Lloyd25-Jun-06 0:45 
AnswerRe: about ObjectDisposedException Pin
Guffa25-Jun-06 4:25
Guffa25-Jun-06 4:25 
GeneralRe: about ObjectDisposedException Pin
Super Lloyd25-Jun-06 4:29
Super Lloyd25-Jun-06 4:29 
Questionproblem to send information Pin
foysal mamun24-Jun-06 18:05
foysal mamun24-Jun-06 18:05 
QuestionManaged DirectX Lighting Pin
bwagz24-Jun-06 17:06
bwagz24-Jun-06 17:06 
QuestionOverride == operator Pin
relaeir24-Jun-06 16:21
relaeir24-Jun-06 16:21 
AnswerRe: Override == operator Pin
leppie24-Jun-06 22:01
leppie24-Jun-06 22:01 
AnswerRe: Override == operator Pin
Robert Rohde24-Jun-06 22:59
Robert Rohde24-Jun-06 22:59 
QuestionIE Toolbar or BHO Images and Temp Folder Location Pin
Ranjan Banerji24-Jun-06 15:14
Ranjan Banerji24-Jun-06 15:14 
AnswerRe: IE Toolbar or BHO Images and Temp Folder Location Pin
Ranjan Banerji25-Jun-06 8:04
Ranjan Banerji25-Jun-06 8:04 
QuestionA problem with WebBrowser control Pin
AngryC24-Jun-06 14:50
AngryC24-Jun-06 14:50 
AnswerRe: A problem with WebBrowser control Pin
led mike25-Jun-06 8:42
led mike25-Jun-06 8:42 
QuestionDirectSound Pin
surfman1924-Jun-06 13:36
surfman1924-Jun-06 13:36 
QuestionHow do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
yoffir24-Jun-06 13:17
yoffir24-Jun-06 13:17 
I have put a lot of effort in order to build a class that encrypt ConnectionString or any other key/value arument in the App.config configuration file.
The problem I am facing is that the EncrypKey variable (string) I am using to hold the encryption key is shown in the ildasm utility as a part of the class assembly.
This issue was never a problem in C++ or VB as they are nativ programming languages, but the C# in .NET anvironment is an "open source code" to all whome consirn Frown | :(
I will apretiate very much a good solution in order to finnish the task I am facing of encryption of ConnectionString to a data-base.

I hope the solution will not be to write a DLL in nativ programming language such as C++ or VB and in this machine-code DLL to put the encription key I am using in the C# program. I do not have the knowladge for doing such a task (connecting between C# program and C++ DLL) and it is like saying that C# has a prity big disadvantege on native languages.

Here is what the ildasm showing when I look at the assembley of the encripting class.
Please notic that "SuperSecret" is the encryption key I am using in order to encrypt and decrypt ConnectionString value in App.config file.


.method public hidebysig specialname rtspecialname

instance void .ctor() cil managed

{

// Code size 46 (0x2e)

.maxstack 5

IL_0000: ldarg.0

IL_0001: ldnull

IL_0002: stfld class [System]System.ComponentModel.Container SetAppConfig.Form1::components

IL_0007: ldarg.0

IL_0008: call instance void [System.Windows.Forms]System.Windows.Forms.Form::.ctor()

IL_000d: ldarg.0

IL_000e: ldstr "App.config"

IL_0013: ldstr "ConnectionString"

IL_0018: ldstr "SuperSecret"

IL_001d: newobj instance void [iConUtils]iConUtils.appConfiguration::.ctor(string,

string,

string)

IL_0022: stfld class [iConUtils]iConUtils.appConfiguration SetAppConfig.Form1::AppConfig

IL_0027: ldarg.0

IL_0028: call instance void SetAppConfig.Form1::InitializeComponent()

IL_002d: ret

} // end of method Form1::.ctor

Regards
yoffir

AnswerRe: How do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
Colin Angus Mackay24-Jun-06 14:42
Colin Angus Mackay24-Jun-06 14:42 
AnswerRe: How do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
Paul Conrad24-Jun-06 19:08
professionalPaul Conrad24-Jun-06 19:08 
GeneralRe: How do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
Colin Angus Mackay24-Jun-06 23:54
Colin Angus Mackay24-Jun-06 23:54 
GeneralRe: How do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
Paul Conrad25-Jun-06 7:23
professionalPaul Conrad25-Jun-06 7:23 
AnswerRe: How do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
mav.northwind25-Jun-06 0:17
mav.northwind25-Jun-06 0:17 
QuestionHow to invoke windows API in C# Pin
ZHENG.YANG.POINTER24-Jun-06 12:11
professionalZHENG.YANG.POINTER24-Jun-06 12:11 
AnswerRe: How to invoke windows API in C# Pin
Christian Graus24-Jun-06 12:15
protectorChristian Graus24-Jun-06 12:15 
QuestionSpeech Compression for Voice Chat Pin
surfman1924-Jun-06 11:41
surfman1924-Jun-06 11:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.