EaseFilter Demo Project
|
CreateShareEncryptedFileForm.cs
Go to the documentation of this file.
35 OptionForm optionForm = new OptionForm(OptionForm.OptionType.Access_Flag, textBox_FileAccessFlags.Text);
49 MessageBox.Show("The file name can't be empty.", "Create share encrypted file", MessageBoxButtons.OK, MessageBoxIcon.Error);
56 MessageBox.Show("The pass phrase can't be empty.", "Create share encrypted file", MessageBoxButtons.OK, MessageBoxIcon.Error);
62 if (textBox_IncludeProcessNames.Text.Trim().Length > 0 || textBox_ExcludeProcessNames.Text.Trim().Length > 0)
67 if (textBox_IncludeUserNames.Text.Trim().Length > 0 || textBox_ExcludeUserNames.Text.Trim().Length > 0)
72 policy.AESFlags |= (uint)AESFlags.Flags_Enabled_Check_AccessFlags | (uint)AESFlags.Flags_Enabled_Expire_Time;
90 if (!EncryptionHandler.EncryptFileWithEmbeddedPolicy(textBox_FileName.Text, textBox_PassPhrase.Text, policy, out lastError))
93 MessageBox.Show("Create share encrypted file failed with error:" + lastError, "Process share encrypted file", MessageBoxButtons.OK, MessageBoxIcon.Error);
100 MessageBox.Show("Create share encrypted file succeeded.", "Process share encrypted file", MessageBoxButtons.OK, MessageBoxIcon.Information);
static bool EncryptFileWithEmbeddedPolicy(string fileName, string passPhrase, AESAccessPolicy policy, out string lastError)
Create an encrypted file with embedded access control policy, distribute the encrypted file via inter...
Definition: EncryptionHandler.cs:80
string ExcludeProcessNames
Definition: EncryptionHandler.cs:58
string IncludeProcessNames
Definition: EncryptionHandler.cs:57
uint LengthOfExcludeUserNames
Definition: EncryptionHandler.cs:55
string ExcludeUserNames
Definition: EncryptionHandler.cs:60
uint LengthOfIncludeUserNames
Definition: EncryptionHandler.cs:53
uint AccessFlags
Definition: EncryptionHandler.cs:47
long ExpireTime
Definition: EncryptionHandler.cs:46
uint LengthOfExcludeProcessNames
Definition: EncryptionHandler.cs:51
string IncludeUserNames
Definition: EncryptionHandler.cs:59
Definition: ConfigSetting.cs:17
uint LengthOfIncludeProcessNames
Definition: EncryptionHandler.cs:49
Definition: CreateShareEncryptedFileForm.cs:22
Services Overview
Architect, implement and test file system filter drivers for a wide range of functionality. We can offer several levels of assistance to meet your specific.
Contact Us
You are welcome to contact us for salse or partnership.
Sales: sales@easefilter.com
Support: support@easefilter.com
Info: info@easefilter.com