Foil Pics allows you to encrypt some pictures from the gallery with a password stronger than the lock code. Strictly speaking, each picture is encrypted with a unique random 256-bit AES key which in turn is encrypted with an RSA key which in turn is encrypted with your password. If the bad guys get your encrypted pictures, they would have to crack the AES key (different for each picture) or the RSA key (shared by all pictures but harder to crack) in order to extract the content. If they get the encrypted RSA key as well, then they can brute force your password. So in the end, the encryption is as strong as your password.
The format of the encrypted file is described here.
The RSA key is stored in ~/.local/share/foil/foil.key
- you can copy it from one device to another. Using the same RSA key on different devices, protected with different passwords, is actually not such a bad idea. If you forget the password, you can use the backup key to decrypt the images, assuming that it has a different password that you still remember.
Source code: https://github.com/monich/harbour-foilpics
Comments
dfstorm
Thu, 2020/03/26 - 10:19
Permalink
Hi :) feature request ^^' : would it be possible to integrate the video too ?
vrn99
Fri, 2018/02/23 - 08:26
Permalink
I'm using an Intex Aqua fish converted to Jolla C. Just to clarify, I have only encrypted ~200 pictures but for some reason while decrypting, it goes beyong 900 pictures and crashes.
vrn99
Thu, 2018/02/22 - 07:22
Permalink
Hi, for some reason I'm unable to decrypt the encrypted pictures. I've encrypted around 200 pictures but while decrypting it goes beyong 900 pics and then crashes (I'm guessing due to OOM). Any idea how I can get around this?
slava
Thu, 2018/02/22 - 18:22
Permalink
Let me try to reproduce it. Sounds like a bug. I have to admit that I never tried to encrypt or decrypt that many pictures at once. What kind of device do you have?
minitreintje
Fri, 2018/02/16 - 14:39
Permalink
Does this app has any kind of logging?
slava
Fri, 2018/02/16 - 15:08
Permalink
It's all taken out in the release build. Debug build - yes.
minitreintje
Fri, 2018/02/16 - 10:21
Permalink
I still encounter crashes when selecting multiple pictures and try to delete them.
slava
Fri, 2018/02/16 - 13:25
Permalink
So far I haven't been able to reproduce the crash but there's clearly something wrong with deletion of multiple encrypted images. I'll check it out. If you come up with a reliable way to reproduce the crash, pelase let me know.
TMavica
Wed, 2018/02/14 - 13:31
Permalink
It keeps crashing when I decrypt or encrypt...
and the photo in encrypt is doubled...
slava
Wed, 2018/02/14 - 13:56
Permalink
Double picture must be the consequence of the crash (one of images is most likely the thumbnail). Apparently, the app is crashing when it's trying to write the info file, the one that maps encrypted images to thumbnails and groups.
Can you provide step-by-step instructions on how to reproduce the crash?
TMavica
Wed, 2018/02/14 - 14:37
Permalink
cant...because it happened suddenly. I tried decrypt all image (keep crashing), after encrypt again, crashed and relaunch the app, i saw they are doubled again
slava
Wed, 2018/02/14 - 15:25
Permalink
Yes, I was able to crash it with "Select all" -> "Decrypt"! Thank you, will fix it.
TMavica
Wed, 2018/02/14 - 16:37
Permalink
Thanks
slava
Thu, 2018/02/15 - 02:05
Permalink
The crashes should be fixed in 1.0.4, let me know if something is still wrong!
TMavica
Thu, 2018/02/15 - 13:24
Permalink
Yes, is fixed
minitreintje
Sun, 2018/02/11 - 00:04
Permalink
This is a great app! I only have some crashes when working with groups in the encrypted pictures. Adding to a group, loading groups, ... let the app crash :(
slava
Thu, 2018/02/15 - 02:06
Permalink
Version 1.0.4 should behave much better. Please let me know if you still manage to crash it.
slava
Sun, 2018/02/11 - 00:27
Permalink
Obviously, if I could reproduce the crash, I would've fixed it! Can you provide step-by-step instructions how to crash it?
Kelmi
Tue, 2018/01/16 - 22:42
Permalink
How I can brute force (or other way) my password when I forget password?
Maybe John the ripper is my friend.
This is little bit irrelevant to post here..
slava
Thu, 2018/02/08 - 19:49
Permalink
The private key is encrypted in an openssl-compatible way (e.g. when you specify the passphrase to ssh-keygen). If there is some software out there for brute-forcing such keys, it should work here as well.
Kelmi
Fri, 2018/02/09 - 02:36
Permalink
Awesome work, thank you! Very nice that you implement my request! I also want thank you for your information about my situation, so for now I will ask one of my fellow about cracking my password.
I will reward you as soon as I found your "donation address" ;)
DarkTuring
Thu, 2017/12/14 - 06:26
Permalink
From pulley menu add share to SMS, Email, Android App
Upon sharing it will automstically decrypt and cooy paste into shared space.
slava
Thu, 2017/12/14 - 16:19
Permalink
I was thinking about it too but in the end I didn't feel comfortable with saving encrypted pictures somewhere in the unencrypted form (other than via Decrypt action).
Kabouik
Wed, 2017/12/13 - 06:19
Permalink
Ir's useful for those who use Sailfish since years and may have hundreds or thousands of pictures, and more than a few to protect. I would certainly use it!
Thanks for this app!
Kelmi
Tue, 2017/12/12 - 01:03
Permalink
I wonder why there is no "select pictures to encrypt" selection.. :P
slava
Thu, 2018/02/08 - 19:42
Permalink
Multiple selection has been implemented in 1.0.3
slava
Tue, 2017/12/12 - 01:31
Permalink
I thought about that but it didn't seem particularly useful to me. But it's certainly doable.
slava
Sun, 2017/12/10 - 15:00
Permalink
Version 1.0.1 is identical to the Jolla store version (as is 1.0.0).
slava
Mon, 2017/12/11 - 20:27
Permalink
So is 1.0.2 and all upcoming versions until it's explicitely stated that OpenRepos and Jolla store versions have diverged.
jfebrer
Mon, 2017/12/04 - 22:00
Permalink
It would be great also for simple text files.
Pages