Cryptography with no key

Topics: Cryptography Application Block
Jun 11, 2009 at 8:46 AM

Hi guys,
I had a problem.

I would like to decrypt the data that I had saved on file without the key file.
I would like that the user can insert the key/password from the keyboard.

How can I do that?

Tnx

Jun 11, 2009 at 9:29 AM

You can't do that using the built-in providers of EntLib, you would have to create your own provider that don't use files.  Related thread - http://entlib.codeplex.com/Thread/View.aspx?ThreadId=19657

 

Sarah Urmeneta
Global Technology & Solutions
Avande, Inc.
entlib.support@avanade.com

Jun 11, 2009 at 10:53 AM

Can I build a key that doesn't depends from the Username or from the Machine?

Jun 11, 2009 at 11:37 AM
Edited Jun 11, 2009 at 11:39 AM

Based on what you want, you don't really need entlib for this kind of scenario.  You could simply use the regular .net encryption classes like this one - http://www.codeproject.com/KB/security/SimpleEncryption.aspx.  It now answers your second question.  Yes, you can have a key that doesn't depend on a user or a machine.

 

Sarah Urmeneta
Global Technology & Solutions
Avande, Inc.
entlib.support@avanade.com

Jun 11, 2009 at 1:35 PM

How can I build a key that doesn't depends from the Username or from the Machine ?

Jun 15, 2009 at 3:56 AM

Is this still on the context of EntLib?  Or are you resorting to something similar like the one from the link I posted above?

 

Sarah Urmeneta
Global Technology & Solutions
Avande, Inc.
entlib.support@avanade.com