【发布时间】:2013-01-02 07:07:08
【问题描述】:
byte[] abc= Encoding.ASCII.GetBytes("sdf");
DocumentProtection prot = new DocumentProtection();
prot.Edit = DocumentProtectionValues.ReadOnly;
prot.Hash = Convert.ToBase64String(abc);
settings1.Append(prot);
我已经尝试了上面提到的代码,其中只读工作正常,但我遇到了使用哈希 (#) 设置密码的问题。建议我可能的方式
【问题讨论】:
-
我什至试过 prot.Hash =Base64BinaryValue.FromString("dsf");