This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Password Protect

Tags: None
(comma "," separated)
georgetoon
Registered Member
Posts
64
Karma
0

Password Protect

Wed Jan 19, 2011 3:42 am
I was reading the help section and it mentioned that KMyMoney integrates with Kwallet? for password protection when opening?

I tried GPG but the saved encrypted file would not open. I would enter a password and it said I had a bad pass phrase.

Just wondering how best to password protect my KMymoney file.
User avatar
Hei Ku
Registered Member
Posts
784
Karma
3
OS

Re: Password Protect

Wed Jan 19, 2011 3:45 am
It integrates with KWallet for saving the password of some online services.
To protect the file, it allows to encrypt it with GPG, but you must have your GPG agent running in order to function properly.

You can read this thread for further info on the subject: viewtopic.php?f=69&t=34458


Hei Ku, proud to be a member of the KMyMoney Development Team since January-2008
georgetoon
Registered Member
Posts
64
Karma
0

Re: Password Protect

Wed Jan 19, 2011 3:57 pm
Hei Ku wrote:It integrates with KWallet for saving the password of some online services.
To protect the file, it allows to encrypt it with GPG, but you must have your GPG agent running in order to function properly.

You can read this thread for further info on the subject: viewtopic.php?f=69&t=34458


Thanks, I read the thread and read the info in chapter 19. I'll do so again, because I'm getting the following message when I try to open the encrypted file, "Bad passphrase." The file won't open.

Luckily, I saved under a new name before I tried out encryption.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: Password Protect

Wed Jan 19, 2011 6:53 pm
Some things you can try. All commands are run inside a konsole window:

1) check that the file can be decrypted using GPG

run the following command:
Code: Select all
   gpg -d path-to-your-encrypted-kmy-file

You should be asked a passphrase and see a long list (length depends on the amount of data in your file) of XML stuff. Just let it pass by. If you see it it's a good sign as the data is still present.

2) check that the GPG agent is up and running:

run the following command:
Code: Select all
   set | grep GPG

you should see something like this:
Code: Select all
   GPG_AGENT_INFO=/tmp/gpg-QRpeiF/S.gpg-agent:2971:1


If nothing shows up you have not started the GPG agent. You need to do that before you start KMyMoney. A simple sequence would be:
Code: Select all
eval `gpg-agent --daemon`


After that, you should be able to get the setting for GPG_AGENT_INFO as shown above.

Now start KMyMoney from the same konsole and check that you can read your data file.

In general, the gpg-agent should be started when KDE is starting. This varies from distro to distro, as it seems even between versions. If you don't find it, a last resort is to add the file .kde4/env/gpg-agent.sh with the following contents:

Code: Select all
eval "$(gpg-agent --daemon)"


Don't forget to make that file executable. Then logoff and login again and the agent should be started from now on whenever you login using our wonderful KDE.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5
georgetoon
Registered Member
Posts
64
Karma
0

Re: Password Protect

Wed Jan 19, 2011 7:54 pm
Thanks!:) I'll check all this!:)


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]