monich / harbour-foilnotes

Notes encryption application for Sailfish OS
https://openrepos.net/content/slava/foil-notes
Other
5 stars 7 forks source link

decode encrypted files from console #29

Open norayr opened 2 years ago

norayr commented 2 years ago

how to decode foilnotes encrypted files from console?

there should be possibility with other open source tools, i guess?

otherwise, may it be you can provide such a commanline tool?

monich commented 2 years ago

You would need to use foilmsg tool like this:

foilmsg -d -f 0E5664D5957C7492 -s foil.key -P $PASSWORD

where 0E5664D5957C7492 is a file from ~/Documents/FoilNotes/ directory on the phone, foil.key is your encrypted RSA key (i.e. ~/.local/share/foil/foil.key from the phone) and PASSWORD environment variable contains your password. That would decrypt your note and dump it to stdout (there's also -o to save it to a file).

monich commented 2 years ago

Real name of the encrypted file is randomly generated, yours would of course be different.

monich commented 2 years ago

There was a similar question about FoilAuth

norayr commented 2 years ago

thank you for reply!

can i build this command 'foilmsg' without having jolla's proprietary classes in my system?

i'll try meanwhile.

monich commented 2 years ago

The only external dependency is libglibutil, it's not that bad!