Click here to Skip to main content
15,886,806 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
This is my first question in this forum. and i want to know how to encrypt a hard disk using vb.net code.
Is this possible sir ?
Posted
Updated 31-Mar-11 2:57am
v2

Here's a decent answer on MSDN

http://social.msdn.microsoft.com/Forums/en/Vsexpressvcs/thread/81362154-2ef5-4ff4-b6e4-5bb91a4c428c[^]

As suggested there, better to go with something that's already mature + had some serious development work. This isn't a simple subject or concept

Maybe have a look at TrueCrypt[^]

Then you could just work with TrueCrypt using the command line, which is simple from .Net code

http://stackoverflow.com/questions/1315677/is-there-an-way-to-programatically-read-a-file-from-a-truecrypt-disk-into-memory[^]
 
Share this answer
 
Comments
Sandeep Mewara 31-Mar-11 10:14am    
My 5!
Sergey Alexandrovich Kryukov 31-Mar-11 16:10pm    
Surely a good Answer, my 5.
--SA
In VB.NET?? You can't. VB.NET (or managed code in .NET in general) cannot be used for this. The reason being is that your code would have to load before Windows even starts to load. Your disk decryption software would have to load from the boot record of the disk in order to work.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 31-Mar-11 16:11pm    
What is that is a *different* disk, just for data?
--SA
Dave Kreskowiak 31-Mar-11 18:16pm    
Same exact problem. If you want to store data encrypted in a file, that's a very different solution.
Sergey Alexandrovich Kryukov 1-Apr-11 0:37am    
Of course it's a different story.
OK, thank you.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900