[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: forgot password in Kmail



On Fri 05 Dec 2003 09:50, Mauro Darida wrote:
> How to retrieve the password which kmail holds obfuscated in .kmailrc ?
> I use kde 3.1.2 on woody.

I once asked this question on another list. Someone sent me a small program 
that could de-scramble it, but that was several boxes ago so I no longer have 
it.

But I found it here with a quick google:
http://lists.debian.org/debian-kde/2001/debian-kde-200105/msg00079.html

Which contains:
<QUOTE>
> Is there somewhere in a config file for kmail I can find it?
> 
surely ... .kde/share/config/kmailrc - but it's sort of encrypted.
the encryption looks like unciphered_char = 287 - ciphered_char.
you have the latin1 ascii encoding table at hand? *g*
no, seriously. compile this tiny program:

-------- snip --------
#include <stdio.h>

int main()
{
  char buf[100];
  int len, i;

  while (fgets (buf, sizeof(buf), stdin))
  {
    len = strlen (buf) - 1;
    for (i = 0; i < len; i++)
      putchar (287 - buf[i]);
    puts("");
  }
}
------- snap --------

run it, paste the encrypted password from kmail into it and have 
fun with the password.

hth

greetings
</QUOTE>

This might have changed, but it worked for me.

> Saluti, Mauro.
> --
> On this laptop no Windows system survives and LINUX POWER reigns UNLIMITED.
> GnuPG key ID: 28A61681



Reply to: