Re: public key (General questions)
Hi dear Drazen,
I get the error Error 1 The type or namespace name 'WODSSHKeyLib' could not be found (are you missing a using directive or an assembly reference?) when I using this sample code.
How can I add a specific reference to code ?
Thanks,
Bertrand
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:
- public key - Luca Colombo, 2007-09-19, 10:32
- Re: public key - woddrazen, 2007-09-19, 10:39
- Re: public key - Bertrand DEMARCQ, 2008-04-17, 16:09
- Re: public key - woddrazen, 2008-04-17, 16:32
- Re: public key - Bertrand DEMARCQ, 2008-04-17, 16:43
- Re: public key - woddrazen, 2008-04-17, 17:04
- Re: public key - Bertrand DEMARCQ, 2008-04-17, 17:48
- Re: public key - woddrazen, 2008-04-17, 17:04
- Re: public key - Bertrand DEMARCQ, 2008-04-17, 16:43
- Re: public key - woddrazen, 2008-04-17, 16:32
- Re: public key - Bertrand DEMARCQ, 2008-04-17, 16:09
- Re: public key - woddrazen, 2007-09-19, 10:39