Save kmymoney file without encryption

Thomas Baumgart thb at net-bembel.de
Sun Apr 8 16:21:07 UTC 2018


Randy,

On Sonntag, 8. April 2018 14:06:06 CEST Randy wrote:

> On 04/08/2018 02:44 AM, Thomas Baumgart wrote:
> > Randy,
> > 
> > On Sonntag, 8. April 2018 05:48:48 CEST Randy wrote:
> >> Hello,
> >> 
> >> I've been encrypting my Kmymoney file for years, but now I'm trying to
> >> save this file without the encryption enabled and it's not working for
> >> me.
> >> 
> >> I removed the check mark from the box "Use GPG encryption", and then
> >> used the "save as" option to save the file, but when I go to open up the
> >> new file, it continues to ask me for the password.
> >> 
> >> Can someone please point me to what I'm doing wrong?  I'm running
> >> version 5.0.0 of KMM.
> > 
> > There's a bug in 5.0.0 which prevents you from doing so. It has been fixed
> > in 5.0.1 (see https://kmymoney.org/release-notes.php and
> > https://bugs.kde.org/ show_bug.cgi?id=390467). But there's a workaround
> > to solve the problem without upgrading KMyMoney (which you should do
> > nevertheless because 5.0.0 has a couple more problems).
> > 
> > Before you continue with the following make sure you have a backup of your
> > file. Replace 'your-kmy-file' with the actual name of your file.
> > 
> > A temporary workaround would be the following commands on the command line
> > 
> >    gpg -d your-kmy-file.kmy | grep -v "kmm-encryption-key" >
> >    your-kmy-file.xml
> >    mv your-kmy-file.xml your-kmy-file.kmy
> > 
> > Explanation:
> >    gpg -d your-kmy-file.kmy
> > 
> > decrypts the file and sends the output to stdout which is send to
> > 
> >    grep -v "kmm-encryption-key"
> > 
> > which removes the line containing the key value and
> > 
> >    > your-kmy-file.xml
> > 
> > stores the decrypted and modified file into your-kmy-file.xml (cleartext)
> > 
> >    mv your-kmy-file.xml your-kmy-file.kmy
> > 
> > simply replaces the original decrypted file with the now unencrypted
> > version. The next time you save the file using KMyMoney it will be
> > compressed automatically.
> > 
> > Removing that one line is necessary, since otherwise KMyMoney will save
> > the
> > file encrypted again without asking you.
> 
> Hello Thomas,
> 
> Thanks for the quick reply.  I just now updated my Arch installation to
> KMM 5.0.1 and the problem is now gone.
> 
> This brings up another question.  I'm contemplating moving from Arch to
> Fedora, and the KMM package in Fedora is currently only at version
> 4.8.0.  Would there be any issues with my KMM file that I have been
> using in KMM 5.0 now being used in an older version of KMM?

Some of the online mapping provider names (names of the KMyMoney plugins) have 
been changed. So in case you setup online banking with 5.0 that might not work 
under 4.8 and you have to unmap and remap the accounts.

I am not sure if anything else has changed which could prevent a rollback to 
4.8. Keeping backups is always a good idea.

Thomas

-- 

Regards

Thomas Baumgart

https://www.telegram.org/       Telegram, the better WhatsApp
-------------------------------------------------------------
Hexdump should be compulsory at kindergarten! -- Jos van den Oever
Found on http://www.kdedevelopers.org/node/3569
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 846 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney/attachments/20180408/f8465e7a/attachment.sig>


More information about the KMyMoney mailing list