java - Which encryption algorithm/method is being used in setEncryption method of PdfStamper class? -


i referring following method here. (link more details)

public void setencryption(boolean strength,                           string userpassword,                           string ownerpassword,                           int permissions)                    throws documentexception 

which encryption algorithm/method/standard being used internally itext encrypt pdf?

is aes?

the javadocs closely related interface, pdfencryptionsettings, provides clues:

encryption settings described in section 3.5 (more section 3.5.2) of pdf reference 1.7. explained in section 3.3.3 of book 'itext in action'.

looking @ section of the reference can see either rc4 or aes used.

with in mind, i'd specific method linked either 40-bit rc4 or 128-bit rc4. overloaded alternative method allows specify 40-bit rc4, 128-bit rc4 or 128-bit aes.


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -