Re: public key - WeOnlyDo Discussion board

Re: public key (General questions)

by woddrazen, Thursday, April 17, 2008, 16:32 (6065 days ago) @ Bertrand DEMARCQ

Hi Bertrand,


Here is example how to generate and save private and public key in C# using wodKeys:
[code]WODSSHKeyLib.Keys key;
key = new WODSSHKeyLib.Keys();

key.Generate(WODSSHKeyLib.SSHKeyTypes.RSAkey,1024);
key.Save(WODSSHKeyLib.SSHKeyTypes.RSAkey, c:\private.txt , weonlydo );
key.PublicKeySave(WODSSHKeyLib.SSHKeyTypes.RSAkey, c:\public.txt );
Console.Write(key.get_PublicKeyOpenSSH(WODSSHKeyLib.SSHKeyTypes.RSAkey)); [/code]
Let us know how it goes.


Regards,
Drazen


Complete thread: