Blog coding and discussion of coding about JavaScript, PHP, CGI, general web building etc.

Sunday, May 8, 2016

Encrypted, password-protected file creation

Encrypted, password-protected file creation


I'm writing a program that creates a Word document with sensitive information. I'd like to encrypt and password protect the document and distribute it in a self-extracting file so that the user can double-click, provide a password, and then receive the unencrypted file.

I'm okay creating the Word document, but I'd like a third-party program, scriptable or not (I can use the command-line), that can:

  1. Encrypt the Word document,
  2. Password-Protect the encryption, and
  3. Create a self-extracting file.

Can anyone suggest software for this purpose? Anything of SSL security or higher is sufficient since the data was formerly hosted on an SSL-encrypted site.

Answer by VonC for Encrypted, password-protected file creation


finecrypt.net should met your requirements (free version here)

Finecrypt

Answer by Kornel for Encrypted, password-protected file creation


WinRAR can create self-extracting archives with password protection. It uses 128-bit AES for encryption. Self-extractor's window is configurable. You get good compression as a bonus.

Answer by Zoredache for Encrypted, password-protected file creation


Perhaps what you want is simply a 7zip that has been encrypted and and setup for self extraction.

Answer by Cheeso for Encrypted, password-protected file creation


DotNetZip does this. You can script it or program it. There are command-line tools and a GUI tool to produce ZIPs or self-extracting archives that are AES-encrypted. free.

Answer by Eduardo Ramos for Encrypted, password-protected file creation


If you want to encrypt a Word document, dinamically on a LAMP server, exactly as MS Word does, you may use the Crypto API of PHPDocX: CryptoPHPDocX.

Take into account the encrypted MS Word files are MS Compound File Binaries and not standard OOXML/OPC files.

The advantages over other solutions are:

  • Office recognizes directly the encrypted files as Word files
  • Word prompts you directly to introduce a password
  • Whenever the modified Word document is saved it preserves its encrypted status
  • Encryption algorithm is AES128

The CryptoPHPDocX API also allows for document protection (not secure but pretty useful to exachange documents that you want to protect from direct edition) and can also encrypt PDF files.


Fatal error: Call to a member function getElementsByTagName() on a non-object in D:\XAMPP INSTALLASTION\xampp\htdocs\endunpratama9i\www-stackoverflow-info-proses.php on line 72

0 comments:

Post a Comment

Popular Posts

Powered by Blogger.