To give you the best experience, this site uses cookies. Continuing to use 9bis.net means you agree to our use of cookies.
 

English version Russian version Version française Nederlandse versie Versión española Version portuguese Version polonaise Italian version Versiunea româna   KiTTY News

KiTTY : Forum

Last modification : -

KiTTY web site




Forum Home
 

Password encryption - Conf generator

Raph - Tue 02/11/2010 20:04:34 CET +0100

Hi,

I have a question about password encryption in portable configuration
I want to generate portable Kitty configuration from an excel file.
Since I can read the conf file I see some explicit parameters that I can generate but I don't know how to handle the password since it's encrypted.

Is there a option like in winscp.ini file where you can specify a plain password that will be encrypted by kitty at runtime ? (you can look at this for more details http://winscp.net/eng/docs/custom_distribution )

(it will be be better than my poor english :))


Regards

Cyd - Wed 03/11/2010 17:22:10 CET +0100

No option.
But a generator is available here.

Cyd

Ol - Wed 15/02/2012 23:17:29 CET +0100

Hello,

I also want to create the session files from an external tool, like Raph.

I compiled the genpass.exe from the sources and tried several combinations. I never come to the encrypted password as in the sessions file.

Example: I tried hostname=abc, termtype=xterm, pw=abc -> result=b1vbpHpzFjB
But Kitty is storing in the session file the encrypted pw=nb4pxiKZXbB

Can anyone help me?

Cyd - Thu 16/02/2012 10:12:17 CET +0100

It is normal.
There are several encrypted strings corresponding to one password.
Into the encrypt library I use some "random salt".
Try to use genpass.exe more than one time for the same password and you'll see, the encrypted string won't be the same.

Ol - Thu 16/02/2012 12:22:20 CET +0100

I noticed it - and thought, the bcrypt_init(0) is a randomizer. So, I commented it out.

Is there a possibility, to generate the encrypted passwords externally, so that I can paste them in an Kitty configuration?

As background: I am using about 70 SSH connections stored in an Excel sheet. I want to create from the sheet 70 session files for Kitty including the encrypted passwords.

Cyd - Thu 16/02/2012 14:05:51 CET +0100

Just export your Excel sheet into a .csv file. Then create a .bat file to generate the encrypted password string.

Ol - Thu 16/02/2012 15:36:48 CET +0100

Thanks Cyd!

Now I understood what you ment with "random salt" :-)

I always made a comparision of my generated password and the one stored in the session. I was expecting a 1:1 identity. But it works with every version of the output of genpass.exe.

Thanks a lot for your very fast support.





Answer


The forum is actually closed