Info
Name | .NET File Encryptor |
Market | codester.com |
Category | C & C++ |
Tags | c, encryption, file encrypt, winforms |
Have you ever wanted to block access to a folder?
Blocking folders is always very annoying, it takes several steps to do this and we usually have to tinker with system settings that are complicated. With this class you can block the contents of a folder with just a mouse click, but the use of this class is not limited to only files in the system, you can use this class to transfer files via sockets safely without knowing the content.
How to use.
First of all, add the class to your project and then in the code references add the FileEncryptor using namespace.
Then just use the following code.
using(Encryptor engine = new Encryptor())
{
engine.Configuration.Password = “MyPassword”;
engine.Configuration.Salt = “MyTastySalt”;
// To Encrypt
engine.EncryptFile(pathOfFile);
// To Decrypt
engine.DecryptFile(pathOfFile);
}
Other informations in How To Use file.