Password Protection of PDF with multiple passwords stored in external database.

Ok, here is what I need to do.
I need to find a way to embed a script into a PDF using LifeCycle Designer so if someone downloads my PDF they won't be able to access it unless they are a registered user in my MSAccess or MySQL database.
Link from PDF to external database to authenticate USER before allowing the PDF to be opened (in case they have downloaded it to their desktop).
Is there a creative way or alternative to accomplish this? Just looking to prevent the average person (not the security savy webmaster).
Thank you.

The Bouncy Castle JCE provider (www.bouncycastle.org) has Base64 encoder/decoder classes that 'just work'.
import org.bouncycastle.util.encoders.Base64;
String base64encodedString = "ABCKD4632adcomd";
byte[] decoded = Base64.decode(base64encodedString);
String reencoded = new String(Base64.encode(decoded));As for your second question re: how should you re encrypt the passwords? The standard, quite secure way of doing this is to use a one-way cipher. This will encrypt the password text to an unintelligible mess, that CANNOT be decrypted back to the original.
When a new user enters their password for the first time, you use your cipher to encrypt it, and store this (not the actual password).
To verify this user, you take the password they give you, encrypt it in the same way, and compare the results.
Unix/Linux can use a shell command called 'crypt' to do exactly this... MySQL will also do it for you... INSERT INTO blah VALUES(CRYPT('blahpasswordstring'), and SELECT * FROM blah WHERE password=CRYPT('enteredpassword')).
... and its far too early in the morning, and I cant for the life of me remember the JCE equivalent of this function :(

Similar Messages

  • Problem Creating PDF with Multiple Files in Pro. 7

    I'm using Adobe Acrobat Professional 7 on a computer with Windows XP.
    The problem is that when I try to create a PDF with multiple files everything just suddenly stops. There are 75 files involved and when it gets to around 41 or so (don't know the exact number because I turned away from my computer for just a moment), it just stops. There are no error messages; nothing. Just a blank Acrobat screen.
    Last week I had a different problem which was resolved by an uninstall/reinstall and I was able to create the PDF with those exact same 75 files, but after the PDF was created I realised that some changes needed to be made. I dumped the PDF, made the appropriate changes and left it for the weekend. Today I the new problem has arisen.
    Any ideas what the problem might be?

    I've read many discussions about Acrobat and problems with server files, with the general solution being what you are doing... copy the files to a local hard drive

  • Question - create pdf with multiple size pages

    Is there a way to create a pdf from a book file with multiple size pages? Frame 11

    Theoretically possible by component file, but not within a single file.
    See:
    http://forums.adobe.com/message/4013068#4013068
    http://forums.adobe.com/message/3519366#3519366
    http://forums.adobe.com/thread/485331?tstart=0

  • Is it possible to sync PDFs with multiple computers using the same apple ID?

    I have successfully synced these PDFs with one computer (iMac) and one iOS device (iPhone).
    However, I can't figure out how to sync the PDFs with the second computer (Macbook Pro).
    I added the PDFs to iTunes by dragging them into the books tab. I then set the iOS device to sync books via iBooks.
    Does iTunes only sync books purchased from the iTunes store?
    I am using iTunes v11.1 on both computers.

    If you have tow computers that wish to talk to each other then no matter what Buddy List you use you will need two accounts.
    If this is a List that logs into the AIM servers it can be an old @mac.com name, the newer MobileMe name or an AIM name.
    With a Jabber List it can be a Jabber ID or GoogleTalk ID
    In a straight forward set up Jabber Lists (Jabber ID) can not talk to AIM Buddies or An AIM Buddy List (Screen Name) talk to Jabber Buddies
    9:14 PM Sunday; July 20, 2008

  • Printing PDFs with Multiple lines enabled

    Hi, I need some help with Designer. I have no clue how to really use it, I've been playing with it for a week, but some things I can't figure out.
    I have a text field that fits about 1 line of text on it. I enabled multiple lines in the field, because people are going to be typing a lot. However, when I print it, only 1 of the lines shows up. Is there any way that I can fix the settings so that the box expands as the text is typed, and that if it can expand, the entire page shrinks to keep it to the same amount of page numbers instead of bumping everything down the page? If someone out there knows, please help!!!
    Thanks!!!

    Hi,
    Maybe this can help:
    1 - Save your form as a Dynamic Form
    2 - Place a subform with Flow content
    3 - Place a text box with multiple line in the sub form. Make it expand to fit (layout tab) and Data Format XHTML (binding tab)
    4 - Put the contents in the field
    5- Click outside the field and print it.
    regards

  • Create a PDF with multiple images per page

    So this seems really simple, but i cannot figure it out... i am creating a PDF from 30 JPGs and rather than having an image on each page in the PDF I would like to set it up so that there are 6 images per page... any thoughts .. thanks in advance
    cheers
    matt

    Once you have the PDF with a single image per page, print it out to a new PDF with 6 pages per page.
    Either that, or use an authoring application like Word or InDesign.

  • Trying to login on the basis of emald and password stored on my database, But I am getting exceptions. Why?

    //This code is of login button
    protected void Button1_Click1(object sender, EventArgs e)
            SqlDataReader dr;
            SqlConnection conn = new SqlConnection(GetConnectionString());
            string sql = "SELECT PASSWORD FROM ACCOUNT WHERE EMAILID='"
                        +TextBox1.Text+"'";
            try
            conn.Open();
            SqlCommand cmd = new SqlCommand(sql, conn);
            dr = cmd.ExecuteReader();
                if (dr[0].ToString() == TextBox2.Text)
                    Response.Redirect("http://www.microsoft.com");
                else
                    Label1.Text = "Wrong Details!";
            catch
                Label1.Text = "Error!";
            //finally
            //    conn.Close();
    //Please Help me! Thanks.
    KGProgrammer

         SqlConnection conn = new SqlConnection(GetConnectionString());
            string sql = "SELECT PASSWORD FROM ACCOUNT WHERE EMAILID='"
                        +TextBox1.Text+"'";
    Hello,
    Based on your code, you may have a SQL injection vulnerability. You can try to use parameterized query that assign user input to a parameter instead of embedding user input in the query statement.For example:
    Using(SqlCommand cmd = new SqlCommand("SELECT * FROM ACCOUNT WHERE emailid = @id AND password = @pw",conn))
    cmd.Parameters.AddWithValue("@id",TextBox1.Text);
    cmd.Parameters.AddWithValue("@pw",TextBox2.Text);
    SqlDataReader dr = cmd.ExecuteReader();
    If(dr.HasRows)
    Response.Redirect("http://www.microsoft.com");
    else
    Label1.Text = "Wrong Details!";
    The following thread is about a similar requirement, please refer to:
    http://stackoverflow.com/questions/16618212/c-sharp-database-log-in-form
    Regards,
    Fanny Liu
    Fanny Liu
    TechNet Community Support

  • How to create Interactive PDF with multiple .mp4 videos– without lagging on playback?

    I'm creating a long document with no real effects-- just a "fade" transition from page to page-- and multiple videos. These videos are all formatted as .mp4s, and I have had no issues with the actual process of getting them embedded and playing back on export.
    My real issue is that the videos are all extremely laggy on playback. Since this is a presentation document, I'd like to know if there are any options for making the playback a bit smoother. Each video, by itself, plays with no issues. Would the combined filesize of all the videos be causing this? There are about eight 30-second videos and one 2-minute video, which makes the filesize quite large.
    Filesize is not an issue, so is there some way to completely embed the videos or create an external folder the PDF document can draw the videos from on playback...? Hopefully I won't be stuck with laggy videos.

    My suspicion is that computer setup has more to do it than anything. How much RAM, whether other apps are loaded, what kind of graphics chip, stuff like that.
    I don't know of a setting, though you can look at the Flash Player settings in Acrobat. There is certainly nothing in InDesign that would affect it.

  • Printing a multi page pdf -with multiple pages per sheet

    In order to save paper I create multiple page pdfs and in the print dialog box under Layout I select Pages per Sheet 2 , etc. The problem is when i try to print out the document, it only prints out the first page. The other pages fail to print. this only occurs when printing a pdf in this way. I have already re-installed Acrobat.
    error on printer is: error typecheck offending command and the file name changes on the printer to acr.000000.tem
    I'm using acrobat 8. Printing to a xerox docu-color printer.
    Mac 10.4.11

    Nope, that's a Flash-only effect. Sometimes people try to embed a SWF (Flash file) into a PDF, but that only plays like it's a movie, and doesn't work well.
    I think you should give up on the idea if you want to use PDF as the distribution method.

  • PDF with multiple invoices I need collated copies printed

    First off, I would like to say I am an IT professional so the obvious things I have already tried.  Here is the situation:
    I have a business application that outputs shipping invoices and packing slips into a PDF.  That single PDF has many slips and some are multiple pages long.  I need to print 3 copies of each slip as part of the business SOP.  Right now I have to manually collate each one and it takes hours.  The printer does support collating, BUT it treats it as a single document.  Not a document that has multiple documents inside of it.  So if I put on collate, they are printed in order, but then I have to seperate each set of copies.  That process actually takes longer than printing them not collated. 
    The only way I can think of it would be somehow tagging the seperate pages automatically so the print driver knows it is a seperate document within the single file.  They all have page x of y on each page.  But open to other ideas.
    Is there some way to print this how I need it?  It isn't a simple solution but this would eliminate 2-4 hours of manual collating each day.  Any ideas?  Right now it is using adobe reader, but if they have more advanced option in the pro version I am sure the company would gladly invest in it.
    Thank you in advance for any assistance.

    Open the document in Acrobat Reader and use the menu Window > New Window.

  • How to save a pdf with multiple slides per page

    I have multiple pdf files that I would like to combine but for some of those files, there were originally from powerpoint. For those files, I would like to change the pdf so that there are multiple slides per page. I don't have a copy of the original powerpoints. I am trying to find an easy way to do this because I have at least a hundred pdfs to do. Thank you!

    You could print a PDF to the Adobe PDF printer, and select multiple Pages per Sheet on the Layout tab of the printer Properties dialog. Printing a PDF to PDF is generally frowned upon, but once it a while it comes in handy. It could have some unwelcome side effects though like wiping out your carefully crafted accessibility tags, bookmarks, and some document properties.

  • How to generate xml file with multiple nodes using sqlserver as database in SSIS..

    Hi ,
    I have to generate the xml file using multiple nodes by using ssis and database is sqlserver.
    Can some one guide me on to perform this task using script task?
    sudha

    Why not use T-SQL for generating XML? You can use FOR XML for that
    http://visakhm.blogspot.in/2014/05/t-sql-tips-fun-with-for-xml-path.html
    http://visakhm.blogspot.in/2013/12/generating-nested-xml-structures-with.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Commit order with multiple UoWs registered in External JTA Controller ?

    Hello,
    Our architecture deals with J2EE application using multiple mappings (multiple sessions and UoWs).
    I would like to know whether the order the UoWs are registered in the external transaction controller is the
    same order the UoW are committed when the JTA Global transaction commit ? Is it guaranteed by TopLink (or JTA spec either) ?
    Regards,
    gerardce

    Yes, TopLink documentation says nothing about that and I can test it. But even if all my unit tests say all that the registration order is the UoW commit order, it can be by chance and not a real guaranty.
    So no other information or idea about my question ?

  • Need the pdf file to be stored directly in database using jasper

    I am using jasper integration package ..from www.opal-consulting.de
    using apex 4 and i Am currently able to generate pdf invoice..using jasper and store in a database.. table.
    I need to generate the pdf  invoice in the background ..without dispalying in my screen..
    Without downloading on my machine..And  store directly into  the database table..
    Is it  possible..
    Any information is highly appreicated..
    Below is my existing part of code..Kindly guide.
    DECLARE
    l_blob BLOB;
    l_mime_type VARCHAR2 (100);
    l_blob2 BLOB;
    l_mime_type2 VARCHAR2 (100);
    mport varchar2(200);
    mrserver varchar2(20);
    BEGIN
    warn('fsubdno'||:P103_SUBSCRIBERDNO);
    commit;
    mrserver := rserver();
    mport := 'http://'||mrserver||'/JasperReportsIntegration/report';
    -- generate the report and return in BLOB
    xlib_jasperreports.set_report_url (mport);
    warn('firststrikeeee');
    xlib_jasperreports.get_report
    (p_rep_name => 'reinvx',
    p_rep_format => 'pdf',
    p_data_source => 'chess',
    p_rep_locale => 'de_DE',
    p_rep_encoding => 'UTF-8',
    p_additional_params => '&Psubscribe_no='||:P103_SUBSCRIBER_NO||'&Psubscribed_no='||:P103_SUBSCRIBERDNO,
    p_out_blob => l_blob,
    p_out_mime_type => l_mime_type
    WPG_DOCLOAD.download_file (l_blob);
    warn('secondstrikeee');
    WPG_DOCLOAD.download_file (l_blob);
    BLOB_LOADB (mid(),:p103_subscriber_no,null,'renewal_invoice','renewalinv'||:p103_subscriber_no,l_mime_type,l_blob);
    -- release resources
    DBMS_LOB.freetemporary (l_blob);
    -- stop rendering of APEX page
    apex_application.g_unrecoverable_error := TRUE;
    EXCEPTION
    WHEN OTHERS
    THEN
    xlog ('PRC_GET_REPORT_TUNNEL', SQLERRM, 'ERROR');
    RAISE;
    END;
    Edited by: susf on Jul 16, 2012 8:47 AM

    Hi,
    try make a procedure from your original code like this:
    procedure make_pdf(p_subscriber_no in number, p_subscriberdno in number)
    is
       l_blob blob;
       l_mime_type varchar2 (100);
       l_blob2 blob;
       l_mime_type2 varchar2 (100);
       mport varchar2(200);
       mrserver varchar2(20);
    begin
       warn('fsubdno'||p_subscriberdno);
       commit;
       mrserver := rserver();
       mport := 'http://'||mrserver||'/jasperreportsintegration/report';
       -- generate the report and return in blob
       xlib_jasperreports.set_report_url (mport);
       warn('firststrikeeee');
       xlib_jasperreports.get_report
          (p_rep_name => 'reinvx',
          p_rep_format => 'pdf',
          p_data_source => 'chess',
          p_rep_locale => 'de_de',
          p_rep_encoding => 'utf-8',
          p_additional_params => '&Psubscribe_no='||p_subscriber_no||'&Psubscribed_no='||p_subscriberdno,
          p_out_blob => l_blob,
          p_out_mime_type => l_mime_type
       blob_loadb (mid(),p_subscriber_no,null,'renewal_invoice','renewalinv'||p_subscriber_no,l_mime_type,l_blob);
       -- release resources
       dbms_lob.freetemporary (l_blob);
    exception
       when others
       then
          xlog ('prc_get_report_tunnel', sqlerrm, 'error');
          raise;
    end;Then you can call this procedure in a database job that you create with an apex process like this:
    begin
      dbms_scheduler.create_job (
        job_name        => 'make_pdf_job',
        job_type        => 'PLSQL_BLOCK',
        job_action      => 'begin make_pdf(' || :P103_SUBSCRIBER_NO || ',' || :P103_SUBSCRIBERDNO|| ') end;',
        start_date      => systimestamp,
        repeat_interval => null,
        end_date        => null,
        enabled         => true,
        comments        => 'Make pdf job from Apex page 103.');
    end;regards,
    Erik-jan

  • Display in browser blob files (.doc, .pdf...) stored in the Database

    Hi,
    I want to display blob file from de DB to the browser, but when I click on the link of the document I want to open, nothing append. If I check the length of the file it is correct. I tried to write it in a directory to see what appends. I can only write txt file. The other files are corrupted.
    I did something like in the topik 532271.
    Did I do something wrong ? Do I have to write some code in the web.xml ?
    Here is my code :
    public DataOutputStream showBlob() throws SQLException, IOException{
    //it is my class not those from java.io
    File file = (File) this.getFiles().getRowData();
    FacesContext faces = FacesContext.getCurrentInstance();
    HttpServletResponse resp = (HttpServletResponse)faces.getExternalContext().getResponse();
    Blob b = file.getBlob();
    int len = 0;
    InputStream is = b.getBinaryStream();
    long length = b.length();
    byte[] x = new byte[10240];
    resp.setHeader("Content-Disposition","filename=\"" + file.getFileName() + "\"");
    resp.setContentType(file.getMimeType().getMime());
    resp.setContentLength((int)length);
    DataOutputStream o = new DataOutputStream(resp.getOutputStream());
    while ( (len = is.read(x)) != -1)
    o.write(x, 0, len);
    o.flush();
    o.close();
    is.close();
    faces.responseComplete();
    return o;
    In my xhtml page I have :
    <ice:commandLink id="downloadLink"
    action="#{managerBean.layoutManager.ediTraining.showBlob}"
    value="#{file.fileName}" target="_blank">          
    </ice:commandLink>
    Thank you for your response.
    Edited by: joce77 on Nov 12, 2007 7:39 AM

    Hi BalusC,
    I did what you explant on this page http://balusc.blogspot.com/2007/07/fileservlet.html whit "FileServlet serving from database".
    When I clik on the link I got an empty page with this html code :
    <iframe id="history-frame" src="/uniform/xmlhttp/blank" style="z-index: 10000; visibility: hidden; width: 0pt; height: 0pt; position: absolute; opacity: 0.22;" title="Icefaces Redirect" frameborder="0"></iframe>
    <script id="dynamic-code" language="javascript"></script>
    <script id="focus-code"></script>
    <script id="select-code"></script>
    <script id="click-code"></script>
    <script id="configuration-script" language="javascript">window.session='YXtNt2XZnElULb3t0j_7BQ';
    document.getElementById('configuration-script').parentNode.viewIdentifier=1;
    if (!window.views) window.views = []; window.views.push(1);
    window.configuration = {synchronous: false,redirectURI: null,connection: {context: '/uniform/',timeout: 30000,heartbeat: {interval: 20000,timeout: 3000,retries: 3}}};
    </script>
    Any idea ?
    Thanks

Maybe you are looking for

  • Opening and Closing Stock Calculation In SAP BPC 10.0 NW

    Hello Experts, Need your guidance on this calculation. BI Cube: Receipts and Issues only Available on day basis BPC Report / Cube Context Product = Product1, Product2, Account = receipts, Issues, Opening Stock, Closing stock, Flow = Other Audittrail

  • Excel save as pdf hangs when launched through a watch folder

    Hi there, I've configured a watch folder to launch a batch file which launch a .exe file I've written in C++ In this application I launch Excel which open a .XLS document which contains macros. At the end of the computations there is a macro which sa

  • How do I run iCal 1.5 on an intel mac or fix iCal 2.0 webdav publishing?

    I've been using iCal 1.5 (any version, 1.5.2, 1.5.5, etc) to publish to a zope server using webdav for a few years now. I just bought a new Mac Pro, and discovered that while iCal 2.0 still publishes using webdav, the zope server is no longer able to

  • I want to add a new field  to Standard report  tcode : QM10.

    hi friends, I want to add a new field  to Standard report  tcode : QM10. how  do i manage it without creating a Z report. Please help...

  • Text size fluid grid layout

    I am using Dreamweaver cs6 fluid grid layout.  Is there a way to change the text size for the different layouts?  For example I would like the header text to be 16px on the desktop but only 12px on the mobile. Thank you!