Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 823863
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T03:00:43+00:00 2026-05-15T03:00:43+00:00

Is it possible to configure the FlexPaper reader to decrypt password-protected PDFs or SWFs?

  • 0

Is it possible to configure the FlexPaper reader to decrypt password-protected PDFs or SWFs?

Here is the use-case:

  1. User uploads a PDF.
  2. My server would then convert the PDF to SWF via pdf2swf.
  3. Then somehow encrypt the SWF with a password (not sure best way to do this).
  4. Then the FlexPaper would be able to decrypt the SWF and display it.

What I am trying to avoid is the caching of readable SWF in the browser’s cache.

Any ideas on the best way to achieve this?

I know, even with this it will not be a fully secure solution, but certainly helps.

Note: I am running this on Linux and OS X and using Rails.

Answers from questions asked in the responses:

  • Do you need it on the wire?

    No, I don’t think so, the application will be only accessed via SSL

  • Do you need the files to be stored securely on your hard drive?

    Ideally yes, we will keep them encrypted on the server — but not critical

  • What exactly are you trying to prevent by encrypting them?

    I want users of the application only to be able to view the documents from the FlexPaper reader on the website. I do not want users to be able to download a readable document to their machine.

Thanks!

Jonathan

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T03:00:43+00:00Added an answer on May 15, 2026 at 3:00 am

    What I am trying to avoid is the caching of readable swf in the browser’s cache.

    I’m not sure if using a password will help at all. If the SWF is encrypted it may likely be stored in the cache encrypted. I think this post on how to prevent caching is probably what you want.

    But in case not, I’ll answer some of the encryption questions below.

    pdf2swf supports a -P (or --password) option that allows you to decrypt an encrypted PDF, which implies you need a password fairly early in that process.

    If you want to encrypt the SWF, you should check out the as3crypto libraries for the Flex side and some ruby crypto libraries for the server side.

    I have a blog post entitled, “Why Obfuscate, Encrypt those SWFs! that talks about how you can encrypt a SWF that is then decrypted via a SWFLoader that I hope is useful to you. The same concepts apply here:

    1. Encrypt the SWF (after it’s been converted from PDF)
    2. Use a modified SWFLoader (or URLLoader) to decrypt the SWF
    3. Use the decrypted SWF just like you would a regular one

    But, a few questions:

    Where do you need security? Do you need it on the wire? Do you need the files to be stored securely on your hard drive? What exactly are you trying to prevent by encrypting them? The answers to these questions will largely determine the best approach to take.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to configure Devise to accept logins for multiple models (either User
Is it possible to configure xampp to serve up a file outside of the
Is it possible to configure nHibernate to connect to Paradox database ( *.db files)?
Is it possible to configure two separate web apps (WAR) in a J2EE application
Is it possible to configure the default file extension that Oracle's Pro*COBOL precompiler assumes
Is it possible to configure Windows Servers that reside on the same domain such
Is it possible to configure the TreeView control in the Silverlight tookit such that
I am familiar with sending email from Java programs. Is it possible to configure
Possible Duplicate: Why not use tables for layout in HTML? Under what conditions should
Is it possible to configure multiple database servers (all hosting the same database) to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.