Click here to Skip to main content
15,908,013 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionApplying windows color schmes to controls Pin
rk4ps24-Jul-06 2:37
rk4ps24-Jul-06 2:37 
QuestionHelpProvider on Infragistics Taskpane Pin
rk4ps24-Jul-06 2:25
rk4ps24-Jul-06 2:25 
AnswerRe: HelpProvider on Infragistics Taskpane Pin
Robert Rohde24-Jul-06 3:36
Robert Rohde24-Jul-06 3:36 
QuestionEncryption - Storing Private keys Pin
blondie1024-Jul-06 1:49
blondie1024-Jul-06 1:49 
AnswerRe: Encryption - Storing Private keys Pin
Guffa24-Jul-06 3:26
Guffa24-Jul-06 3:26 
GeneralRe: Encryption - Storing Private keys Pin
blondie1024-Jul-06 4:02
blondie1024-Jul-06 4:02 
GeneralRe: Encryption - Storing Private keys Pin
Dave Kreskowiak24-Jul-06 6:29
mveDave Kreskowiak24-Jul-06 6:29 
GeneralRe: Encryption - Storing Private keys Pin
blondie1025-Jul-06 3:27
blondie1025-Jul-06 3:27 
mmm, Dave K I think you're somewhat missing the point. Also Public / Private cryptography is asymmetric not symmetric, but who cares you're the mvp after all, though from a quick check on Microsoft's MVP web site your not listed, but hey we all need a buzz to get us through the day.

perhaps i'll rephrase the question to make it more understandable, apologies to anyone else reading this.

Firstly apologies also for the length of this, buy hey it's a big subject.

Now as i understand the public / private system, and please feel free to constructively correct me if i'm wrong (abuse and diatribes are rarely helpful), using the RSACryptoServiceProvider I have a private key with which i encrypt a license number. The user recieves the encrypted number and the local licensing application decodes the passed license value using the public key. The license app then does as required with the decrypted value. If I also use a Digital Signiture, or Hash of the message, i know that i encrypted the value originally and that it hasn't been edited by a third party so all is well.

I don't understand about sending data in reverse, does the remote system use the public key to encrypt the message and my system then uses the private key to decrypt it? If this is so does'nt this mean any user can send me a message as the public key is, well, public?

With regards to storing sensitive information such as Database login details, the encryption is done locally to the user. In this situation i guess i use a form of symmetric cryptography such as the RijndaelManaged cryptography objects i mentioned originally. This still leaves me with the same issue, that anyone with a simple decompiler can view the private key and the cryptography coding methods, as they're held locally to the user, so anyone can cut and paste them to a new project and decrypt the data.

This all seems to easy and that i must be missing something to do with symmetric cryptography, again no more replies on 'all code can be cracked with the right tools bla bla bla'. With the level of encrytion and ease of cracking shown on my own very basic and simple tests there seems to be no point on even performing encryption unless the user has no technological knowledge whatsoever.

A reply on another forum has suggested deriving the key from another source, but if my code can be viewed with a decompiler then surely the source and how the derivation is performed can also noted and duplicated.

The security in my system is not intended to hold up against serious hackers with days or weeks on their hands and the latest tools and techniques, but it should at least survive simple viewing with an online decompiler, symmetric cryptography seems to fail even at this level.

Now perhaps the only answer to the problem at this level of security would be to objfuscate the code. If this is so, do lots of people do this and what are good products to use?

thanks
dave
GeneralRe: Encryption - Storing Private keys Pin
mtone25-Jul-06 9:08
mtone25-Jul-06 9:08 
GeneralRe: Encryption - Storing Private keys Pin
Dave Kreskowiak25-Jul-06 11:30
mveDave Kreskowiak25-Jul-06 11:30 
QuestionMDI form and child form? Pin
Tridip Bhattacharjee24-Jul-06 1:45
professionalTridip Bhattacharjee24-Jul-06 1:45 
AnswerRe: MDI form and child form? Pin
Rizwan Bashir24-Jul-06 3:26
Rizwan Bashir24-Jul-06 3:26 
AnswerRe: MDI form and child form? Pin
ChandraRam25-Jul-06 10:25
ChandraRam25-Jul-06 10:25 
Questionpaly DVDin vb.net Pin
shriveni23-Jul-06 23:32
shriveni23-Jul-06 23:32 
AnswerRe: paly DVDin vb.net Pin
Rizwan Bashir24-Jul-06 3:30
Rizwan Bashir24-Jul-06 3:30 
AnswerRe: paly DVDin vb.net [modified] Pin
Aaron12828-Jul-06 8:37
Aaron12828-Jul-06 8:37 
QuestionClipboard Deadlock Pin
Michael Andersson23-Jul-06 23:04
Michael Andersson23-Jul-06 23:04 
QuestionUser Validation Problem Pin
slSoftware23-Jul-06 23:02
slSoftware23-Jul-06 23:02 
AnswerRe: User Validation Problem Pin
P. S. Pundeer24-Jul-06 3:01
P. S. Pundeer24-Jul-06 3:01 
QuestionPlaying Songs Pin
K71823-Jul-06 22:49
K71823-Jul-06 22:49 
AnswerRe: total up item with access or sql? Pin
mtone25-Jul-06 10:01
mtone25-Jul-06 10:01 
QuestionCrystal reports too slow! Pin
Muhammad Jawad23-Jul-06 20:38
Muhammad Jawad23-Jul-06 20:38 
Questionvb.net outlook addin problem Pin
K edar V23-Jul-06 20:11
K edar V23-Jul-06 20:11 
AnswerRe: User Validation Pin
Paul Conrad23-Jul-06 19:56
professionalPaul Conrad23-Jul-06 19:56 
GeneralRe: User Validation Pin
Colin Angus Mackay23-Jul-06 20:05
Colin Angus Mackay23-Jul-06 20:05 

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.