Roadmap needed

Discussion of open issues, suggestions and bugs regarding network security and data protection solution - SecureBridge
Post Reply
kaffeburk
Posts: 214
Joined: Mon 29 Jan 2007 08:03

Roadmap needed

Post by kaffeburk » Mon 05 Aug 2019 17:16

Hello,

Would it be possible to get some sample of how to encrypt/decrypt a SSH privatekey, store it in the DFM file and use it with sshclient? The point is to make it hard or better impossible for the end user to get they key, only to use the key when running the EXE. My experience with encryption and components is limited.

Best Regards, Pär

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Roadmap needed

Post by ViktorV » Tue 13 Aug 2019 12:27

SecureBridge doesn't allow saving keys to a DFM file.
To solve your task, you can store your key, for example, in a text mode in your application and use the TScMemoryStorage component. The TScMemoryStorage component is designed to store certificates and keys only in the RAM of the device. For this reason, certificates and keys are stored in the local memory of the running application at runtime, while at design-time, they are stored in the local memory only when you work in the TScMemoryStorage property editor: if you close the project, the keys will be removed. You'll need to import the keys again after reopening the project.
To use keys in your application with the TScMemoryStorage component, load them each time you run the application, even if you previously loaded the keys at design-time.
Also, you can store information about keys and users in files using the TScFileStorage component. If you enabled the properties TScFileStorage.Algorithm and TScFileStorage.Password, private keys will be stored in an encrypted form. These properties are used to encode and decode files when saving or loading data.

Post Reply