Encryption

  • Thread starter Thread starter Nitin
  • Start date Start date
N

Nitin

Happy New Year 05'

My program encryptes text using filestream and DES and stores the encrypted
text in a text file. I want to encrypt any text and store it in access data
base(I need the encrypted text as 'string') and not a text file. Can anyone
help me?.
Thanx
Nitin
 
Nitin said:
My program encryptes text using filestream and DES and stores the
encrypted text in a text file. I want to encrypt any text and store it in
access data base(I need the encrypted text as 'string') and not a text
file. Can anyone help me?.

Instead of encrypting to a 'FileStream', you can encrypt to a 'MemoryStream'
and then put the data in a database field as a BLOB:

HOW TO: Read and Write a File to and from a BLOB Column by Using ADO.NET and
Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;316887>

HOW TO: Read and Write a File to and from a BLOB Column by Using Chunking in
ADO.NET and Visual Basic .NET
<URL:http://support.microsoft.com/?scid=kb;EN-US;317034>
 
Cor,

Cor Ligthert said:
In my idea is there no DES in your answers

I didn't post information on DES because I assumed that the OP knows where
to find the DES classes in the .NET Framework:

| My program encryptes text using filestream and DE
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top