Click here to Skip to main content
15,905,414 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: Speech Compression for Voice Chat Pin
Ed.Poore24-Jun-06 12:47
Ed.Poore24-Jun-06 12:47 
GeneralRe: Speech Compression for Voice Chat Pin
surfman1924-Jun-06 13:33
surfman1924-Jun-06 13:33 
GeneralRe: Speech Compression for Voice Chat Pin
Ed.Poore25-Jun-06 9:03
Ed.Poore25-Jun-06 9:03 
AnswerRe: Speech Compression for Voice Chat Pin
mav.northwind25-Jun-06 0:20
mav.northwind25-Jun-06 0:20 
Questionobject vs. text stream Pin
Ed 5424-Jun-06 10:40
Ed 5424-Jun-06 10:40 
AnswerRe: object vs. text stream Pin
Ed 5424-Jun-06 11:19
Ed 5424-Jun-06 11:19 
QuestionSMS Server Pin
mostafa_h24-Jun-06 10:36
mostafa_h24-Jun-06 10:36 
QuestionHow do you implement a message queuing system? Pin
Steve Messer24-Jun-06 10:25
Steve Messer24-Jun-06 10:25 
AnswerRe: How do you implement a message queuing system? Pin
Ed.Poore24-Jun-06 12:56
Ed.Poore24-Jun-06 12:56 

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.