Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

decode encrypted files from console #29

Open
norayr opened this issue Oct 23, 2022 · 5 comments
Open

decode encrypted files from console #29

norayr opened this issue Oct 23, 2022 · 5 comments
Labels
question Further information is requested

Comments

@norayr
Copy link

norayr commented Oct 23, 2022

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 monich added the question Further information is requested label Oct 23, 2022
@monich
Copy link
Owner

monich commented Oct 23, 2022

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
Copy link
Owner

monich commented Oct 23, 2022

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

@monich
Copy link
Owner

monich commented Oct 23, 2022

There was a similar question about FoilAuth

@norayr
Copy link
Author

norayr commented Oct 24, 2022

thank you for reply!

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

i'll try meanwhile.

@monich
Copy link
Owner

monich commented Oct 24, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants