SSH DACDemo

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

SSH DACDemo

Post by kaffeburk » Thu 10 May 2018 12:46

Hello,

Im looking into the DacDemo and the Randomform. I do uderstand how the random data is created, but how is it transferred into the SSH client?The FData is not used anywhere outside of the Randomform, what i can see.

Regards, Pär

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

Re: SSH DACDemo

Post by ViktorV » Thu 10 May 2018 15:03

FData is passed to the Randomize method of the global Random object, which will subsequently generate random data that is used in the SSH protocol during negotiation.

amerci
Posts: 2
Joined: Tue 29 Jun 2021 06:48

Re: SSH DACDemo

Post by amerci » Tue 29 Jun 2021 06:51

ViktorV wrote: Thu 10 May 2018 15:03 FData is passed to the Randomize method of the global Random object, which will subsequently generate random data that is used in the SSH protocol during negotiation.
Hi ViktorV,
This 'global Random object' you refer to.....

Is that a Delphi global object or a SecureBridge global object?

Thanks.
- Adrian.

YanishevskiyVI
Devart Team
Posts: 70
Joined: Wed 02 Jun 2021 09:30

Re: SSH DACDemo

Post by YanishevskiyVI » Tue 29 Jun 2021 12:08

Hi Adrian,

Random - is a global object of SecureBridge.
Also, some helpful and useful information can be found here: https://www.devart.com/sbridge/docs/ind ... random.htm

Vitaliy,
Devart team

amerci
Posts: 2
Joined: Tue 29 Jun 2021 06:48

Re: SSH DACDemo

Post by amerci » Wed 30 Jun 2021 17:06

Thank you so much for your quick reply Vitaliy.

For C++ Builder users, it's:

- Scbridge::Random;

If it helps and C++ Builder users, initialize it like this:

Code: Select all

	DynamicArray<Byte> dna;
	dna.Length = 512; //or whatever length/strength you need
	//fill dna with random bytes
	Scbridge::Random->Randomize(dna);
Thanks again.
- Adrian

YanishevskiyVI
Devart Team
Posts: 70
Joined: Wed 02 Jun 2021 09:30

Re: SSH DACDemo

Post by YanishevskiyVI » Fri 02 Jul 2021 10:55

Hi Adrian,

Yes, you are totally right.
Many thanks for explanation and we are very appreciated your help and contribution.

Vitaliy
Devart team

Post Reply