Re: external storage of SFTP public-key authentica (General questions)

by Jasmine, (7391 days ago) @ Dennis Griesser

Dennis,

hi. Forget about public key - you need it only to paste to a server (to a corresponding file), and you don't need to keep it locally. Anyway, you can always derive it from the private key.

As for storing private key, yes, you're right, result of PrivateKey property returns raw data that may cause problems in some environments. But, latest version of wodKeys does allow you to specify PEM format of the key (base64 encoded) instead od raw data. So, if you need to keep it somehow in your app, you could Save it once, and then pass saved value (this will be base64 data, easy to keep in your app) to Load method.

locked

Complete thread: