简体   繁体   English

pdf文件中的AES 256位加密

[英]AES 256 bit encryption in pdf file

I am working on PDF Security and trying to encrypt User and Owner password using AES 256-bit encryption algo. 我正在研究PDF安全性并尝试使用AES 256-bit encryption算法加密用户和所有者密码。

I have generated these keys successfully (using crypto library) but when these keys are written in PDF Encryption dictionary they do not seem to work. 我已经成功生成了这些密钥(使用crypto库)但是当这些密钥用PDF加密字典编写时,它们似乎不起作用。 ( Acrobat does not open the file) Acrobat不会打开文件)

I have explored iTextSharp which does the encryption of pdf file. 我已经探索了iTextSharp ,它可以对pdf文件进行加密。 Now I want to decrypt that file so that some how I get the idea how iTextSharp has done it. 现在我想要解密该文件,以便我了解iTextSharp如何做到这一点。 But unfortunately I did not find any tool to do so. 但不幸的是,我找不到任何工具。 The file encrypted using iTextSharp is correctly opened in Adobe Acrobat . 使用iTextSharp加密的文件在Adobe Acrobat正确打开。

while encrypting keys you have to use SASLprep (IETF RFC 4013) profile of stringprep (IETF RFC 3454). 加密密钥时,必须使用stringprep的SASLprep(IETF RFC 4013)配置文件(IETF RFC 3454)。 The thing i want to add is lib ICU can generate SASLprep (IETF RFC 4013) profile easily. 我要添加的是lib ICU可以轻松生成SASLprep(IETF RFC 4013)配置文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM