Store key to stream or string?

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
snorkel
Posts: 384
Joined: Tue 08 Aug 2006 15:10
Location: Milwaukee WI USA

Store key to stream or string?

Post by snorkel » Mon 26 May 2008 02:09

Hi,
I see there is a way to store a key from the server in the registry or a file, but how can I save it to a stream or string?

I have a db connection object and would like to store the key as part of that object, which I then store the contents in the registry as a string via object streaming.

Thanks,

Snorkel

Dimon
Devart Team
Posts: 2910
Joined: Mon 05 Mar 2007 16:32

Post by Dimon » Tue 27 May 2008 07:21

In order to save key in a stream you should use the TScKey.ExportTo method and set the Stream param.
But in this case in order for ScSSHClient or ScSSHServer to use this key you need to import it in a storage.

Post Reply