The Decrypt method can decrypt only files that were encrypted using the current user account. The Decrypt method allows you to decrypt a file that was encrypted using the Encrypt method. Sub RemoveEncryption(ByVal FileName As String) Sub AddEncryption(ByVal FileName As String) Public static void RemoveEncryption(string FileName) Public static void AddEncryption(string FileName) using namespace System Ĭonsole::WriteLine("The file " + fileNameĬonsole::WriteLine("Encrypt " + fileName) Ĭonsole::WriteLine("Decrypt " + fileName) Ĭonsole::WriteLine("There was an IO problem.") Ĭonsole::WriteLine("Encryption is not supported on " +Ĭonsole::WriteLine("The operation could not be "Ĭonsole.WriteLine("Encrypt " + FileName) Ĭonsole.WriteLine("Decrypt " + FileName) The file must exist for the example to work. The following code example uses the Encrypt method and the Decrypt method to encrypt and then decrypt a file. The caller does not have the required permission. The path parameter specified a directory. This operation is not supported on the current platform. The path parameter specified a file that is read-only.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |