Securing jpeg's

Does anyone know a good way to secure JPEG's?

I have some scanned images that have sensitive data, and looking for a way to transport them over the Internet (or medium) without risking 3rd party viewing and/or manipulation.
Who is Participating?
sergiobg57Connect With a Mentor Commented:
You can still use kgb.
During the compression, you can choose to generate a SFX module wich stands for Self-Extracting.

So the file it can extract itself  without the need of any third party software.
Use some encrypt software.

For instance, you can use even winrar.(although it's not the most secure encrypt)

If it's a real sensitive data, you should check KGB file compressor.

Open in new window

It uses a powerful encryption mechanism.
Just add a password while compressing a file.
--TripWire--Author Commented:
Thanks - but I don't want the 2nd party (receiving) to have to have any extra software or do anything extra to open it (except maybe put in a password).
Anything along those lines?
I'm assuming you want to put the images on your web server, but you want people who try to access them to be required to put in a password.

To do this you could create a secure subfolder in your website, called (for example)

Within that subfolder you can place an ".htaccess" file containing these lines. ( The path on the AuthUserFile line must be the FILE path (not the URL!) to your secure image folder. )

AuthUserFile /usr/www/
AuthGroupFile /dev/null
AuthName "Owner"
AuthType Basic

require valid-user

Open in new window

Then create an ".htpasswd" file also saved in the secure image folder.  Each line in the .htpasswd file contains a username and the (hashed) password.

Here is a link to a page that you can use to make .htpasswd file entries:

I made a tiny .htpasswd file for you with username "tripwire" and password "secure" so you can try it out.  Put this .htpasswd file in the secure image folder:


Open in new window

Now, whenever a user goes to, they will need to enter a username and password.

Here is an extended discussion:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.