PDF password problem

Hi,
I am developing a application in which I am creating PDF files using PDF specifications given in PDF 1.3. All things are working, for data encryption I am using FlateDecode. Now I have to implement password protection in PDF. I read complete specification regarding this. I want to use standard security handler for this. I implemented this also. I am giving both user and owner password to PDF, but still I am not able to open this file.
For owner password I am using following steps if anyone implemented this please check it and let me know.
For owner password:
1) I gave "jain"
2)after padding it is
jain(¿N^NuŠAd.NVÿú.....¶Ðh>€/.©þ
for padding I used
0x28, 0xBF, 0x4E, 0x5E, 0x4E, 0x75, 0x8A, 0x41,
0x64, 0x00, 0x4E, 0x56, 0xFF, 0xFA, 0x01, 0x08,
0x2E, 0x2E, 0x00, 0xB6, 0xD0, 0x68, 0x3E, 0x80,
0x2F, 0x0C, 0xA9, 0xFE, 0x64, 0x53, 0x69, 0x7A
3)MD5 hash this
output is Qåý†ÜzùÀù 7 Õ¹Î`
4)Get the 5 byte key for rc4 algo
it is Qåý†Ü
5)get the user password "atul"
6) after padding it is atul(¿N^NuŠAd.NVÿú.....¶Ðh>€/.©þ
7)call the rc4 algo as
CryptAcquireContext (&vCryptProv, NULL, MS_ENHANCED_PROV, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT);
CryptCreateHash (vCryptProv, CALG_MD5, 0, 0, &vHashObj);
CryptHashData (vHashObj, (unsigned char*)pEncKey, 5, 0);
CryptDeriveKey (vCryptProv, CALG_RC4, vHashObj, CRYPT_EXPORTABLE, &vSessionKey);
CryptEncrypt (vSessionKey, 0, TRUE, 0, (unsigned char*)rawdata, pEncMsgLen, rawdatalen);
8) so final owner entry is
õ¶hÈHWVtMº|émÊöó^g(æO¨&LÔMYûÜý—
but I don't know whether it is correct or not, If u can please verify these steps and let me know.

but I think the process for getting owner password is same. then how does it matter ?

Similar Messages

  • Good day, I have installed Acrobat DC, and would like to combine 2 files. One is excel allready converted to PDF - No problem. The other one is from Pastel mailed as PDF.

    Good day,
    I have installed Acrobat DC, and would like to combine 2 files. One is excel allready converted to PDF - No problem. The other one is from Pastel mailed as PDF.
    When trying to merge the files, this file ask for a Password. No password was issued from the setup or mail?

    Good day abrieb93050306,
    I can understand your concern, however can you please let me know that are you able to open both the PDF files ( the one you converted form excel to pdf & the other pdf that was mailed to you ) individually without using any password?
    As it asks for the password, it means that the postal mailed PDF is password protected. You can ask for the password from the sender of the postal mail & then try to combine the files.
    Please follow the steps in the provided KB doc.to combine the files : Combine files into single PDF | Adobe Acrobat DC tutorials
    This will probably resolve your issue.
    Let me know if you still experience any issue.
    Regards,
    Aadesh

  • PDF password

    I know i must be thick, but can anyone out there in the real world please tell my how on god's earth do i find a stupid PDF password so i can open a simple file that after 3 months of trying it MAY! be able to assist me in doing the most simplest of task's? I bought a Canon 5d II from a guy and he is registered as the author and HIS name comes up as copywrite of my work, and all i want to do is go on line and change it over into my name. So Canon has given me some info on what to download, but guess what? I can't open it because i need a PDF password. I did'nt get a disc with the camera, and adobe can't help me because there are no real people out there to talk to, and YES! i am VERY FRUSTRATED.
    Can anyone PLEASE, PLEASE, PLEASE HELP.

    Eddy,
    As this appears to be the same problem, posted in this Ps General Discussions thread: http://forums.adobe.com/message/6151131#6151131
    I will Lock this duplicate post, so that all discussion can continue in that other thread, to avoid much confusion. It is also a very good idea to ONLY post of a single problem once. You might have to be patient, until a user comes along with help, but that is the nature of the Adobe Forums - they are mostly user-to-user.
    Good luck,
    Hunt
    [Thread Locked - please continue to respond to the other duplicate post]

  • AirPrint and pdf password protected file issue

    Hello
    I'm facing issue while printing pdf password protected file via Airprint.
    From my iPhone /iPad I can print without any issue to my HP dj 2540 almost everything except pdf password protected file.
    The same pdf file (protected with password) can be printed without any issue form any PC/laptop.
    Do anyone have any idea on how to solve this issue, please?
    Thanks
    regards
    Michele

    It seems that everyone asking this question have links from Grand Canyon University which will soon have over a 100,000 online students that all use ebooks that open just fine in Adobe Acrobat on their PCs BUT NOT on the mobile versions of Adobe Acrobat. Whatever allows this on PCs needs to be added to the mobile version soon.  We rely on our etextbooks that can ONLY be opened on the PC version of Acrobat.  That is ridiculous.  I can't believe with all the posts regarding password protected ebooks on this forum....that it hasn't been resolved.  No one can give you a link because the ebooks are on a website that needs a password.  We can save the books to our harddrives/dropbox...  I could send you a copy, but thats it.  Surely someone at Adobe knows what the hell is going on and can test the problem out themselves?

  • How can I remove PDF password?

    Hi guys, recently I've got a really annoying problem at work. Some of my PDFs can not be copyed, edited or printed. I know that's because they're secured but how can I remove the password? Any idea to work out the problem?

    Hello,
    As there is no any C# solution ,I would like to psot some sample codes to achieve this.
    using Spire.Pdf;
    using Spire.Pdf.Security;
    namespace modify_PDF_passwords
    class Program
    static void Main(string[] args)
    //load a encrypted file and decrypt it
    String encryptedPdf = @"..\Encrypt.pdf";
    PdfDocument doc = new PdfDocument(encryptedPdf, "e-iceblue");
    //reset PDF passwords and set user password permission
    doc.Security.OwnerPassword = "Spire.PDF";
    doc.Security.UserPassword = "pdfcomponent";
    doc.Security.Permissions = PdfPermissionsFlags.Print | PdfPermissionsFlags.FillFields;
    //Save pdf file.
    doc.SaveToFile("Encryption.pdf");
    doc.Close();
    //Launching the Pdf file.
    System.Diagnostics.Process.Start("Encryption.pdf");
    Anyway ,it is a PDF component based solution,which works pretty fine for me.
    You can also read more from
    this article
    REGARDS
    Today is a gift. That's why it's called the Present!

  • 10.6.8 combo & 10.6.7 pdf fonts problem

    Does the 10.6.8 update combo correct the pdf fonts problem that was inherent to 10.6.7?  After a couple days of stress I had to do the lengthy 10.6.7 uninstall process in order to refine my doctoral dissertation.  This has made me gun-shy & fearful of updates.  Is it safe to update now?

    The combo should fix your problem.  As always have a back-up in case you have to revert.
    The Font update came out to fix the problem in 10.6.7
    http://support.apple.com/kb/DL1377
    It should be rolled into the Combo-Update:
    http://support.apple.com/kb/DL1399

  • I have a password problem. After importing data and settings from one MacBook Pro to a new one, I have to put my iCloud password in when re-starting, but the password from the old computer in when waking the computer from sleep.

    I have a password problem. After importing data and settings from one MacBook Pro to a new one, I have to put my iCloud password in when re-starting the new computer, but the password from the old computer in when waking the computer from sleep. I want to use my iCloud password on both computers consistently. How can I fix this?

    The only other place to change a password for the computer login is in Users & Groups preferences. But I don't really know enough here to fix your problem. You can try fixing the keychain:
    iCloud- Frequently asked questions about iCloud Keychain
    Tutorial: Resolving Keychain Issues
    If you can't access your keychain, or forget your password If you can't get into your keychain file because you've forgotten your password or the keychain file appears to be corrupt, there are a couple of options.
    First, if you've forgotten your password, you can use the "Keychain First Aid" utility to make the keychain password the same as the login password. This can be accomplished via the following process:
      1. Open Keychain Access (located in Applications/Utilities)
      2. Go to the "Keychain Access" menu and select "Preferences"
      3. Click the "First Aid" tab
      4. Make sure the "Synchronize login keychain password" box is checked
      5. Close the Preferences window
      6. Go to the "Keychain Access" menu and select "Keychain First Aid"
      7. Enter your username and password
      8. Click the "Repair" button
    The second option is to completely delete your keychain then recreate it. This routine is useful if your keychain appears to be corrupt or otherwise inaccessible. This can be accomplished as follows:
      1. Launch Keychain Access (located in Applications/Utilities)
      2. Click "Show Keychains" in the lower-left corner of the window.
      3. Select the problematic keychain from the left-hand pane.
      4. Navigate to the "File" menu and select "Delete Keychain '(name of keychain)'"
      5. Check all options for deletion and press "OK"
      6. Create a new keychain by going to the "File" menu, then "New" and selecting
          "New Keychain"
      7. You can now make this keychain your default if you desire by selecting it, then
          going to the "File" menu and selecting "Make '(name of keychain)' Default"
    Login as root and perform repair In some cases, problems with keychains can only be resolved when logged in as the root user.
    First, you want to enable the root user:
      1. OS X Mountain Lion: Enable and disable the root user
      2. OS X Lion: Enable and disable the root user
      3. Mac OS X 10.6: Enabling the root user
      4. Enabling and using the "root" user in Mac OS X
    After enabling the root user, and logging in under this account, again open Keychain Access. First attempt repairs using Keychain First Aid, and failing that, delete then recreate the keychain as described above while logged in as root.
    Persistently asked for stored passwords If you are persistently asked for passwords in various applications that you have specified should be remembered in a keychain, your "login" keychain may not be active for one reason or another.
    Navigate to ~/Library/Keychains/ (this is the Library folder inside your user's home folder). Find the file named "login.keychain" and double-click it.
    Failing that, select the "login" keychain within the Keychain Access application and make sure it is the default keychain by going to the "File" menu and selecting "Make 'Login' Default"
    Turn off Keychain synchronization in applications having problems If specific applications are experiencing issues when accessing password-protected material, the Keychain may be to blame.
    The above comes from an article published on MacFixit.com.

  • Illustrator cs6 + msword to pdf + links problem

    Hello!
    BACKGROUND:
    I have a TABLE that I need to inserted into my ILLUSTRATIOR file.
    Whatever method I'm using is failing as the text comes in but NOT the table.
    Instead, I just do this:   MSWORD > Print PDF > in Illustrator >  Place PDF.
    PROBLEM:
    But when I want to make CHANGES TO THE PDF (changes in MS WORD DOC - REprint to PDF).  The PDF file does NOT show up in the LINKS Box. 
    Therefore, I can't UPDATE it.  I'm always having to re-insert the PDF file  -- INSTEAD of like the other files PSD, or .JPG, or whatever else gets UPDATED.
    QUESTION: 
    WHY DOES THE PDF FILE not like the OTHER files that just hang out and can be updated in the LINKS box?
    Thank you,
    M>

    I'm using PC... but the LINK selection was NOT CHECKED.
    Funny.  I never checked that when I placed all the other IMAGES -- like ever.
    Thanks, Larry, that's exactly what needed to be done!!!!!
    SOLUTION:  PLACE >  Check LINK box. Done.

  • Help - PDF Attachment Problem

    Hi,
    Receently, some of our users experienced pdf attachment problem. The user sent a 4mb pdf attachment but after the mail was sent out it only showed 4k in sent item. When the recipient received the e-mail the attachment also showed 4kb and it can't be opend too. These users are using Outlook 2000 and our Exchange server is 2000 Enterprise.
    Thanks for the help,
    JY

    Hi Suresh,
    I just tried this thing in my systtem and it is working... BADI is trigerred everytime there is a change in the PO... even when you release there is a change in the PO so this BADI will be triggerred....
    I suggest you should implement BADI in your dev system and place a break point in the POST method...
    After that create a PO and release it using ME29N... thereafter when you save the PO... this method will trigger and you will have access to PO details...
    PS: Remember this BADI wont work for transaction ME29...
    Regards
    Gautam

  • Pdf attachment problems on osx lion

    Hello
    i was wondering if apple has fixed the pdf attachment problem seen on other iOS' such as 7.1.  I get the same error (blank pdf file, white screen), however, it doesn't happen all the time. 
    any explanations and comments would be greatly appreciated!

    OS 7 or IOS 7?
    If IOS 7, try the iPad community.
    iPad Community

  • WRT110 WIFI password problem

    Hi Everyone,
    I've got a very strange problem.  First, I indicated WPA under Wireless Security section and typed in my passphrase.  However when connecting to my wireless network name my passphrase never worked.  Second, I completely disabled security and tried to simply connect without any passphrase, but I was still being asked for a passphrase nonetheless.  I checked and double-checked and saved settings making sure security was disabled, but I was still being asked for a passphrase when choosing my wireless network!
    I could probably restore my WRT110 to factory settings, however I don't want to loose other configurations like certain open ports and IP addresses I opened up for firewall.
    Is there a way for me to resolve my WiFI password problem without restoring to factory default?  I just need to figure out how to make the WiFi passpharse work.  Here's what I have there:
    Security Mode: WPA Personal
    Encryption: TKIP
    Passphrase: 0sunspot0
    Key Renewal: 3600 seconds
    However, when I pick my wireless network and try to connect to it by typing in 0sunspot0, I get authentication failure!
    Am I doing something wrong?
    Thanks,
    Victor.
    Solved!
    Go to Solution.

    I have misplaced all relevant info. for my router.  I am trying to connect to a mini ipad.  What do I need?
    Is the router up and running and you would only want to add a device wirelessly? If so, you may access the setup page as sabretooth has said. To check the wireless settings, you may check this link, http://kb.linksys.com/Linksys/ukp.aspx?vw=1&docid=476326f36c294e579ba6691a8db5411e_3698.xml&pid=80&r...

  • I cannot open PDF files in Photoshop Elements as it is asking for a PDF Password?

    I cannot open PDF files in Photoshop Elements as it is asking for a PDF Password?

    Is it possible that the creator of the files set a password? That's usually the only time PSE asks for one, although you may be able to open the file just fine in a pdf program that isn't password-aware.

  • Pdf fonts problem in 10.6.7 - resolved in 10.6.8 combo update?

    The pdf fonts problem in 10.6.7 forced me to go through the long uninstall process after a couple days stressing over what the problem was -- it was Adobe tech support that finally informed me what the problem was. Is the problem fixed in the 10.6.8 combo update?  Since I got no replies when I asked this question a different way yesterday, can anyone say (for helpful answer points) whether Apple would be inclined to answer this question if I just call them up (i.e., without existing AppleCare)?   Any other suggestions for getting official support on this question?   As it stands, I fear updating at all, and could be stuck with 10.6.6 for a long time.

    The combo should fix your problem.  As always have a back-up in case you have to revert.
    The Font update came out to fix the problem in 10.6.7
    http://support.apple.com/kb/DL1377
    It should be rolled into the Combo-Update:
    http://support.apple.com/kb/DL1399

  • Sys password problem "INSUFFICIENT PRIVELEGES"

    hi,
    This is with refernece to my earlier post, i can now login as a DBA thry OS authentication.
    Re: sys password problem
    but now i try to vreate a new password file and it successfully created using orapwd....
    but when i try to login as a sys user thru oracle authentication i couldn't because i am getting an error
    "INSUFFICIENT PRIVELEGES"
    and another thing i would like to know do i have to shutdown the database or not for the same.

    Please review the document link sent earlier
    Setting REMOTE_LOGIN_ PASSWORDFILE
    In addition to creating the password file, you must also set the initialization parameter REMOTE_LOGIN_PASSWORDFILE to the appropriate value. The values recognized are:
    NONE: Setting this parameter to NONE causes Oracle Database to behave as if the password file does not exist. That is, no privileged connections are allowed over nonsecure connections.
    EXCLUSIVE: (The default) An EXCLUSIVE password file can be used with only one instance of one database. Only an EXCLUSIVE file can be modified. Using an EXCLUSIVE password file enables you to add, modify, and delete users. It also enables you to change the SYS password with the ALTER USER command.
    SHARED: A SHARED password file can be used by multiple databases running on the same server, or multiple instances of a Real Application Clusters (RAC) database. A SHARED password file cannot be modified. This means that you cannot add users to a SHARED password file. Any attempt to do so or to change the password of SYS or other users with the SYSDBA or SYSOPER privileges generates an error. All users needing SYSDBA or SYSOPER system privileges must be added to the password file when REMOTE_LOGIN_PASSWORDFILE is set to EXCLUSIVE. After all users are added, you can change REMOTE_LOGIN_PASSWORDFILE to SHARED, and then share the file.
    This option is useful if you are administering multiple databases or a RAC database.
    If REMOTE_LOGIN_PASSWORDFILE is set to EXCLUSIVE or SHARED and the password file is missing, this is equivalent to setting REMOTE_LOGIN_PASSWORDFILE to NONE.

  • What is a PDF password?

    What is  PDF password and  how do I generate one?  I try to open a PDF photo file in Elements 11 and it says I need a password.  I have no idea what this is.

    You don't need to generate one. The person who created the PDF set it up to require a password to open it. You will need to contact whoever created it to get the password in order to view it.

Maybe you are looking for

  • I want to use the screen on my touchsmart as a monitor on a new PC.

     I just bought a new gaming tower and i would like to know if i could hook it up to my touchsmart as a monitor.

  • On how many computer can I install Premiere Elements (one licens)

    On how many computer can I install Premiere Elements (one licens)

  • Acrobat 9 Pro Forms Tracker

    Hi, I have distributed forms via AA9 using my local email and have used the Forms Tracker to monitor responses. I recently required a rebuild of my user profile and since then Tracker has lost its link to the distributed forms files so I am no longer

  • LOST MY I PHOTO APPLICATION

    Actually got a display color problem with my new macbook pro - Late 2011 (OSX LION ) so i gave to authorised service center for changing the display . that time as per my instruction technition fully formatted my system . after getting my mac i upgra

  • HTML Application "Frozen"

    I've just encountered a BW3.5 system with the following very strange behaviour with SP16 (ABAP, Basis and BW) I cretae a web interface for a planning layout. Activation goes well and when sent to Internet Explorer appears fine BUT...nothing works fro