Re: [iText-questions] Encrypt without owner password and random password generation

2014-03-11 Thread Andrea
Hi Michael, thanks for clarify this, much appreciated. Regards, Andrea -- View this message in context: http://itext-general.2136553.n4.nabble.com/Encrypt-without-owner-password-and-random-password-generation-tp4659839p4659849.html Sent from the iText - General mailing list archive at Nabble.co

Re: [iText-questions] Encrypt without owner password and random password generation

2014-03-11 Thread Andrea
I found what seemed a little discrepancy with the spec and I asked why, that's it. I spent time re-reading the spec, comparing it with your implementation and writing a detailed email because I thought it was useful for me to understand it but might also be good for iText.. you know, an healthy di

Re: [iText-questions] Encrypt without owner password and random password generation

2014-03-11 Thread iText Info
Andrea schreef op 10/03/2014 18:33: > I actually disagree. It's really simple: either you want the owner password to be the same as the user password, or you want the owner password to be different. In the former case, pass the same bytes for the owner and user password; in the latter case, pass

Re: [iText-questions] Encrypt without owner password and random password generation

2014-03-11 Thread Andrea
Hi, I actually disagree. When I call setEncryption with user pwd, owner pwd and permissions I'm basically applying to my document a Standard Security Handler which is responsible for providing additional entries to the encryption dictionary. Among these entries there's the O key which is a compute

[iText-questions] Encrypt without owner password and random password generation

2014-03-07 Thread Andrea
Hi, I'm dealing with the case where encryption is performed without an owner password being specified. I read the specs, the mailing list and looked at the code and my understanding from the specs is that "If there is no owner password, use the user password instead". As far as I can tell this does