文件加密解密 [英] File Encryption DeCryption

查看:115
本文介绍了文件加密解密的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用"File.Encrypt(sPath)"方法来加密文件.但是未处理异常"System.IO.IOException
Message =为此系统配置的恢复策略包含无效的恢复证书."正在产生
请帮我解决.


谢谢

M USMAN

I am using "File.Encrypt(sPath)" method to encrypt a file. but an Exception "System.IO.IOException was unhandled
Message=Recovery policy configured for this system contains invalid recovery certificate." is accruing
Please Help Me for Solution.


THANX

M USMAN

推荐答案

当您收到一条您不理解的错误消息时,要做的第一件事就是向Google发送以下消息:
^ ]

这使得它看起来像是工作回合中的已知问题.在不了解有关您的环境的更多细节的情况下,我无法确定其中哪些是相关的,但是第一个链接-MSDN-准确地描述了您的问题,因此值得一看:
当客户端计算机加密Windows Server 2003域中的文件时出现错误消息:为此系统配置的恢复策略包含无效的恢复证书" [^ ]
When you get an error message that you don''t understand, the first thing to do is to Google the message:
https://www.google.co.uk/search?q=Recovery+policy+configured+for+this+system+contains+invalid+recovery+certificate&oq=Recovery+policy+configured+for+this+system+contains+invalid+recovery+certificate&sugexp=chrome,mod=14&sourceid=chrome&ie=UTF-8[^]

This makes it look like this is a known problem with workrounds. Without knowing more specifics about your environment, I can''t tell which of these are relevant, but the first link - to MSDN - describes your problem exactly, so it''s worth looking at:
Error message when client computers encrypt a file in a Windows Server 2003 domain: "Recovery policy configured for this system contains invalid recovery certificate"[^]


这篇关于文件加密解密的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆